Error Notices · 12.04.04

The <txp:notice /> tag

This tag is intended to be used by plugins developers when they need to send to the users an error message, without break TXP internal “mechanism”.

The error message needs to be specified as the value of the message attribute.

For example, if you misuse an image tag, you’ll obtain a notice saying “malformed image tag” notifying you that something is wrong with the tag. This message is the resulting output of: <txp:notice message=”malformed image tag” />

Comment

* * *

Conditional tags · 12.04.04

TXP conditional tags are special tags intended to be used when we want to display the results of a template fragment only when a given condition is true.

This tags are:

All of them are container tags so, the fragment we want to display only when the given condition is true, must be placed inside one of these tags.

You can see an example of if_individual_article and if_article_list on the Article Navigation Tags of this manual.

About the if_comments tag, since the logic behind this tag is that, when used on an article form, everything inside this tag will only appear if commenting for the article is open, or was open in the past; you can use it to add to your articles forms comment related things.

Comment

* * *

Feed Tags · 11.04.04

TXP allow us to provide quick links to our XML feeds, both for articles and links.

We can use this tag to create links to an XML feed of our articles. This feed can be both RSS and Atom.

Among the common attributes label, wraptag and limit, this tag can also take the following ones:

With this tag we can create a link to the XML feed for our links.

Among the common attributes label, wraptag and limit, this tag can also take the following ones:

Comment

* * *

Images · 11.04.04

The <txp:image /> tag

Using this tag, you can display the image you want, using the id attribute.

We can easily obtain the id attribute value for anyone of the images we’ve uploaded througt TXP: go to the “Write>Images” section, click on the textpattern link correspondent to your image, and you’ll obtain a nice <txp:image /> tag with the correct id attribute.

Once we’ve got our tag, we can customize it with any of the following attributes:

Comment

* * *

Search results · 3.04.04

The next group of tags will be used by TXP to display your site search results if you create a form called search_results and place them inside. (If this form doesn’t exists, TXP will use a default format to display search results). Tags allowed in a search_results form – all referred to articles which match the search criteria – are:

Comment

* * *

« Prev Page | Next Page »