Those labels will be placed just before the corresponding list, enclosed with the HTML tag provided as the value for the new attribute: labeltag
.
Example usage:
<txp:linklist wraptag="ul" break="li" label="The links" labeltag="h4" />
will display:
<h4>The links</h4>
<ul>
<li><!-- first link here --></li>
<li><!-- second one here --></li>
<li><!-- and so on --></li>
</ul>
If the labeltag
attribute isn’t specified, the label, followed by a <br />
will precede the wraptag and its contents.
We know that it might not be the perfect solution (and think that there isn’t a perfect one) since the semantically correct option will depend on each site’s markup – it’s much better to leave the tag to your personal choice.
Comments
Anton Andreasson
Great news! Been tampering with other solutions to get this appearance working… supposing the label is invisible if the list is, right?
Jeff Adams
Excellent, This is one issue that has been bothering me since the label attribute was created. Thanks!
nicck
How about
labeltag
forsearch_input
?Jérémie
Pedro, You The Man!
David
This is going to be real nice :-) Thx !!
Timo Grant
Yahoo ! Now we have a new Tag for lists of links. More fantastic opportunities wait for me to make them real.
I plan to make a list of new weblinks to blogs, sites I like, all my fellas and some excellent photo art galleries too.
Mats
Is there a way to get the development branch from SVN?
jon Bennett
What about the option to use
dl
lists?Then you could use a
dt
for the label, anddd
s for each item…Commenting has expired for this article.