Textpattern Forms: An Overview · 27.03.04
In TXP, forms are small template fragments, wich can be used to specify what information we want to show about an article, a comment, a link, ..., when TXP finds a page column tag referred to one of these TXP sections.
TXP forms allow us to reuse a template fragment refered to an article on different TXP pages and, better yet, to choose what info we want to show for a given article, using the override default form select on that article. (One of the coolest TXP features, without doubt).
For example, the default article form looks like this:
Default article form
<h3>
<txp:permlink><txp:title /></txp:permlink>
·<txp:posted />
</h3>
<txp:body />
<p>
<txp:comments_invite />
</p>
When TXP finds the tag <txp:article /> in a page, it will replace this tag by the contents of the selected form – the previous one, by default – and then, each form tag will be replaced by it corresponding value for the given article(s).
* * *
