Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-09-24 12:43:08

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

cbe_if_form : check existence of a (list of) form(s)

Preliminary notes :
  • as it is the first time I publish a plugin, I may (surely ?) have make mistakes in the process ; please forgive me and let me know :)
  • english is not my native language, just ask if there’s anything you don’t understand.

Here we go :

cbe_if_form

provides an unique tag to check whether a form – or a list of forms – exist(s) or not in order to take the appropriate action.

Installation

  1. Download the plugin : either regular or compressed
  2. Copy-paste the code as usual, in Administration > plugins
  3. Activate it

The plugin leaves the database untouched.

Usage and syntax

It’s a conditional tag, always used as a container, which supports <txp:else />

The complete syntax of the tag is :

<txp:cbe_if_form name="..." delim="..." logic="...">
    ... action ...
<txp:else />
    ... other action ...
</txp:cbe_if_form>

Attributes are explained and examples are provided in the help that comes with the plugin.

Last edited by CeBe (2010-09-24 15:08:57)

Offline

Board footer

Powered by FluxBB