cbe_if_prod_status
Avoid hazardous indexing
How to prevent indexing a test site and to serve (or not) content according to a given production status.
How to prevent indexing a test site and to serve (or not) content according to a given production status.
A conditional container tag to serve content to EU visitors only (e.g. a cookie-prompt: see usage notes below) or non-EU visitors (via <txp:else />) tag.
<txp:pro_mobile>
// Show mobile content here
</txp:pro_mobile>
Use as an if/else:
<txp:pro_mobile>
// Mobile content here
<txp:else />
// Regular content here
</txp:pro_mobile>
Define custom...
Wrap any content with standard Txp wraptag / class / html_id / label items and run the content through a sequence of transformations in the process. If the content is empty, no wrap is performed or the <txp:else /> is executed.
Treat your variables as strings or lists and compare them to strings or lists. A combination of if_variable and if_custom_field.
Main tag
cbe_if_variableTwo bonus...
adi_mobile implements mobile browser detection, together with some website mode switch functionality and viewport measurement.
See the help supplied with the plugin, or have a look
Since dub_if_ajax is no longer up for grabs: here’s jdw_if_ajax .
This plugin is based off dub_if_ajax (no longer available) by Jamie Wilkinson. It uses the x-requested-with header to deliver different content to Ajax calls.
Addition of a new tag: jdw_if_not_ajax.
Image tags that give image display the same kind of flexibility and power Txp already gives you for article display.
Simple 301 redirect with conditions. This plugin useful for redirect non exist pages or directories to other place.
(404 to 301 redirect)
Multiple conditional tests using a select… case syntax for performing many tests against one item.
This simple plugin can be used to check if an article has been published within a given time.
Conditional tag checks existence and value of the month parameter (useful for archives)
This plugin adds conditional tag to determine, if user is browsing from mobile device, or not (using “else” clause). Browser detection function by Andy Moore – dotMobi Certified Mobile Web Developer. I’ve just wraped it into TxP plugin.
Compares any TXP fields with any other text/fields using a variety of conditional operators such as equals, contains, not, greater than, isnumeric etc. Tests can be combined with AND/OR logic.
This plugin is meant to help those who do Textpattern development on localhost or a subdomain. Sometimes you’ll want to do one thing on the in-development site, and another on the “live” site. The conditional tag provided by aam_if_host lets you do exactly that.
This tag is an enhanced version of the if_article_image tag already present in development, it adds the choice of matching specific article image numbers.
A conditional tag that compares a keyword list as an attribute against the keywords associated with a particular article. This tag is used in an article form and has a mode attribute that can configure the tag to return true under four different circumstances.
1. When all keywords for an article appear as set attributes.
2. When...
Enables to read and provide conditionals for PHP Global Variables, as referer’s url, server’s name, browser’s type, GET and POST variables, ...
nfe_if_category is a conditional tag that works complementary to the built-in if_category tag.
The tag outputs inclosed content if the loaded page belongs to a specified category or any of its children. This allows you to define ‘parent’ categories able to work as ‘sections’ work right now.
The tag...
wet_if_status contains two conditional tags which check for an article’s status being either “live” or “sticky”, respectively.
This is a simple plugin which counts the number of articles in a given category and provides conditional tags which you can use to show or hide elements of your site based on whether there are zero or more than zero articles in the category.
It tests for a set length of time, or greater, in the past against the posted time and returns true or false.
<txp:ras_if_expired offset=“4”>
statement if 4 days or more have passed since the posting date
</txp:ras_if_expired>
This plugin has been replaced...
Both ras_enable_articles and ras_disable_articles conditional tags are included. These conditional tags compare article posting dates to attribute settings and return contained content accordingly.
A collaboration plugin combining ras_if_days and jayrope’s aaa_dates as a single plugin containing five tags. Tags are used to select article, file, or link form content conditionally by posting date or time.
Using this conditional tag you can compare a date specified in an article custom field with a date specified in the tag or with ‘today’.
This way you can eg. control the visibility of an article or its part according to dates.
Allows you to manage multiple domains with only one Textpattern. Download it and read help for the instructions.
The rss_if_search_results plugin allows for the conditional display of data when search results are (or are not) present on the current page.
Here are some example uses for this plugin.
<txp:rss_if_search_results>
I have results
<txp:else>
I don't have...
53 articles