Difference between revisions of "Functions:pageContentAttribStart/pageContentAttribEnd"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
{{Page Template Functions Shortcuts}}
 
== Description ==
 
== 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.
 
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.

Latest revision as of 14:09, 21 October 2008

Page Template Managers

Page Template Functions

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