TXP Tips in the TXP tags category:
Display a linklist category title if links exist
Display category titles in a link list only if a link exists within the category.
Extend if_different using the variable and if_variable tags
Extend the if_different using the variable and if_variable tags courtesy of TXP’s Queen of Tags – Els Lepelaars.
Display the first image from a list in the article image field
Here’s how to display the first image from the article image field if there is a list of images – without using a plugin!
Using the txp yield tag for flexible results
Using the new txp:yield tag for greater flexibility in your site workflow.
Display navigation if newer or older values exist
A nice tip from Stef Dawson on the display of a paging navigation tool if either txp:newer or txp:older values exist.
Edit the category tag output
How to strip the comma from the category links if there is only one category assigned to the article, or display something else.
Show the last modified date
Display the last modified date for an article, or for your site.
Hide or comment out content
For those times when you need to hide some text or leave a comment in your code.
Using txp:variable to improve your comment header
Using txp:variable to improve your comment header.
Choosing a form dynamically
Adding a dynamic attribute to a tag in order to display content based on the attribute.
Vary the formatting for the first page of an article list
How to vary the formatting for the first page of your article list results from the other pages.
If article image
How to overcome the lack of an if_article_image tag to display your article image markup.
Customising the next prev links
How to customise your next/prev links for your individual articles.
New container tags
How to use the new container tags in your projects.
Display categories that contain articles
A simple way of displaying categories that contain at least one article.
List articles by most recent comments
How to display a list of articles sorted by the most recent comments.
Who posted the latest comment
How to display the name of the person who posted the latest comment for an article.
Use of new tag if_variable to replace chh_if_data
Replace the chh_if_data plugin with new native Textpattern functionality – the if_variable tag.
Display content based on URL variable
Display a Flickr set – or other custom content – based on a variable from a URL.
Custom content if data exists
A simple example of how to display content based on the results of a conditional statement using the chh_if_data plugin.
