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 withflexy:include
orflexy:ignore
: If you are turning off flexy element creation withflexy: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>