section
The section tag can be used as either a single tag or container tag. It will display information about the section as defined by either the name attribute, the section currently being viewed, or the section of the article being displayed (if used within an article form, or an if_individual_article conditional tag).
When used as a containing tag, it will turn the contents into a link to that section. Otherwise, it will return plain text.
Related: if_section, if_article_section
attributes
title="0" (boolean)
link="0" (boolean)
wraptag="unset"
class="unset"
name="unset"
url="0" (boolean)
genealogy
Version 4.0.7
Display the current section name
<txp:section />
Display hyperlinked section title
<txp:section link="1" title="1" />
What this does…
In an article form, it displays the article’s section title as a hyperlink to the section home page.
Otherwise, it displays the title of the section currently being viewed as a hyperlink to the section home page.
Display a link to a specified section
<txp:section link="1" title="1" wraptag="p" name="archive" />
What this does…
It displays a hyperlink to the ‘archive’ section home page, wrapped in <p> tags, using the section’s title as link text.
Container example
<txp:section name="archive">My Archive</txp:section>
What this does…
It displays the text “My Archive” as a hyperlink to the ‘archive’ section home page.