hop to #bottom

TXP Bookmarklet

Just plug in your TXP install path and use the Bookmarklet Builder to make yourself a nice little bookmarklet for posting to your TXP. The code below will also take the current page’s title and selected text. There’s a lot more data you can use like putting the current page’s url in a...


Creating Article Popups in Textpattern

Open articles in popup windows

Recently I wanted to open up the article body in an new window. On the page I had set up I exposed the title and the excerpt and then an link to where the article body was opened up in a new window. Below I will briefly cover how I did.


article vs. article_custom

difference between txp:article and txp:article_custom

<txp:article /> is NOT the same as <txp:article_custom />
They cannot be interchanged. This is perhaps one of the most common confusions for Textpatterners.


Random articles

Call a random article or list of random articles

The ability to call a random article is already built into the txp:article_custom tag, with the attribute sortby="rand()".


doArticle

Static articles in chosen order

(Note: use of doArticle is not recommended practise. The instructions have been updated to use the recommended tags <txp:article /> or <txp:article_custom />.)

Articles are traditionally organized by date, but if you want them presented in an order of your choosing, then the tag...


if_individual_article and if_article_list tags

Conditional tags for article list and full article pages

These conditionals are built into textpattern and are very useful for setting up your pages to have certain behavior on article list pages versus behavior of single full article pages.

Example usage of the ‘if individual article’ and ‘if article list’...


All 1088 articles are stored in the treasure rooms that are the Archives.
Published with Textpattern