Textpattern logo

Help?

link category

From Textbook

<txp:link_category />

The link_category tag is a single tag which returns the link category as text. This tag is used in a "link" form or inside the linklist container tag to return information about the current link in a linklist.

Attributes

label="text"
Label for the top of the list.
Default: unset.
labeltag="tag text"
(X)HTML tag to wrap the label at the top of the list.
Default: unset.
wraptag="tag text"
(X)HTML tag to be used to wrap the category, without brackets.
Default: unset.
class="class name"
CSS class to apply to the wraptag
Default: unset.
title="integer"
Display link category name or its title.
Values: 0 (category name) or 1 (category title).
Default: 0.

Examples

Example 1: Display a link with class attribute

<a class="thislink" href="<txp:link_url />">
<txp:link_name escape="html" />
</a> : <txp:link_category title="1" />

Other tags used: link_url, link_name

Translations [?]...

About Textbook