Functions:pageContentAttribStart/pageContentAttribEnd
From Whirlwind eCommerce Wiki
(Redirected from Functions:pageContentAttribSetStart/pageContentAttribSetEnd)
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