flexy:ignore="yes"

flexy:ignore="yes" – Prevent Automatic form value replacement

Synopsis

Usage ( flexy:ignore="yes" )

Description

Tells the generator not to replace form elements with PHP code. Can be used with a Form Tag, or individual elements.

<input>s and <textarea>s with flexy:include or flexy:ignore: If you are turning off flexy element creation with flexy:ignore="yes", then this is not inherited by included templates, and you need to add that tag to the included template as well.

Example

Template with flexy:ignore


<form name="theform1">
  <input name="theinput1">
  <input name="theinput2" value="dummy">
</form>

<form name="theform2" flexy:ignore>
  <input name="theinput3" value="dummy">
  <input name="theinput4" value="dummy">
</form>

<form name="theform3">
  <input name="theinput5" value="dummy" flexy:ignore>
  <input name="theinput6" value="dummy">
</form>

<form name="theform4" flexy:ignoreonly="yes">
  <input name="theinput7" value="dummy">
  <input name="theinput8" value="dummy">
</form>

Compiled template


 <?php echo $this->elements['theform1']->toHtmlnoClose();?>
 <?php echo $this->elements['theinput1']->toHtml();?>
 <?php echo $this->elements['theinput2']->toHtml();?>
 </form>

<form name="theform2">
  <input name="theinput3" value="dummy">
  <input name="theinput4" value="dummy">
</form>

<?php echo $this->elements['theform3']->toHtmlnoClose();?>
  <input name="theinput5" value="dummy" flexy:ignore>
 <?php echo $this->elements['theinput6']->toHtml();?>
</form>

 <form name="theform4">
   <?php echo $this->elements['theinput7']->toHtml();?>
 <?php echo $this->elements['theinput8']->toHtml();?>
 </form>
Start the output using its children. (Previous) Use a variable in the name for a flexy form element (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.