Friday 30 September 2005 by
Starting from revision 979 labels provided for the textpattern listing tags <txp:recent_articles />, <txp:recent_comments />, <txp:linklist />, <txp:related_articles />, <txp:category_list />, <txp:section_list /> and <txp:file_download_list /> will be nevermore added as the first item of those lists.
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 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 depends on each site markup so, much better to leave the tag to your choice.


30 Sep 05
Anton Andreasson
30 Sep 05
Jeff Adams
30 Sep 05
nicck
30 Sep 05
Jérémie
03 Oct 05
David
I plan to make a list of new weblinks to blogs, sites I like, all my fellas and some excellent photo art galleries too.
04 Oct 05
Timo Grant
05 Oct 05
Mats
then you could use a dt for the label, and dd’s for each item…
j
26 Oct 05
jon Bennett