Functions:pageContentAttribStart/pageContentAttribEnd
From Whirlwind eCommerce Wiki
Revision as of 04:28, 8 October 2008 by 71.163.185.8 (Talk) (New page: == Description == Creates a variable that accessible via the page manager. All output between the start tag (pageContentAttribSetStart) and the end tag (pageContentAttribSetEnd) will be th...)
Description
Creates a variable that accessible via the page manager. All output between the start tag (pageContentAttribSetStart) and the end tag (pageContentAttribSetEnd) will be the value of the variable.
Syntax
eV::pageContentAttribStart($replaceString); echo "... output here ..."; eV::pageContentAttribEnd();
Paramaters
- $replaceString
- the variable name. This variable name (for example: "myVar") will be accessed via the page manager by wrapping the name in {$} (for example: "{$myVar}") where the resulting page to the visitor will replace the variable with the output contents between the start and end tags.
Return Values
Does not return a value.
Examples
- Simple example
eV::pageContentAttribStart("count"); for($i=1;$i<=5;$i++) echo "$i.."; eV::pageContentAttribEnd(); // now when {$count} is entered into page management for a page using this template, "1..2..3..4..5.." will be outputted in it's place