Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 15:23:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,531
Bitbucket GitHub

How do you assign an HTML id to a tag construct?

Let’s say you’re using linklist. There’s a documented class attribute to assign the HTML class…but is there a way to assign an HTML id to the ul, please?

Offline

#2 Yesterday 15:58:34

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,040
Website GitHub

Re: How do you assign an HTML id to a tag construct?

Yes, use the html_id="my-linklist-id" attribute :-)


TXP Builders – finely-crafted code, design and txp

Offline

#3 Yesterday 15:59:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,531
Bitbucket GitHub

Re: How do you assign an HTML id to a tag construct?

jakob wrote #340947:

Yes, use the html_id="my-linklist-id" attribute :-)

Perfect. Thanks, jakob!

Offline

#4 Yesterday 16:03:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,531
Bitbucket GitHub

Re: How do you assign an HTML id to a tag construct?

This might be my magnum opus on this forum. Paraphrasing…

gaekwad wrote #340945:

is there a way to assign an HTML id […]?

jakob wrote #340947:

Yes, use html_id :-)

Me:

Offline

Board footer

Powered by FluxBB