Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-10-19 15:23:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,618
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?

Online

#2 2025-10-19 15:58:34

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,104
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 2025-10-19 15:59:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,618
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!

Online

#4 2025-10-19 16:03:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,618
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:

Online

Board footer

Powered by FluxBB