Difference between revisions of "Functions:pageContentAttribStart/pageContentAttribEnd"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
(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...)
 
(No difference)

Revision as of 04:32, 8 October 2008

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

See Also