Difference between revisions of "Functions:pageContentAttribSet"
From Whirlwind eCommerce Wiki
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page Template Functions Shortcuts}} | ||
== Description == | == Description == | ||
Creates a variable that can be used in by content managers in page management. | Creates a variable that can be used in by content managers in page management. | ||
Line 24: | Line 25: | ||
== See Also == | == See Also == | ||
− | |||
*[[Functions:pageContentAttribStart/pageContentAttribEnd|pageContentAttribStart/pageContentAttribEnd]] | *[[Functions:pageContentAttribStart/pageContentAttribEnd|pageContentAttribStart/pageContentAttribEnd]] |
Latest revision as of 14:05, 21 October 2008
Description
Creates a variable that can be used in by content managers in page management.
Syntax
eV::pageContentAttribSet($replaceString,$resultString)
Paramaters
- $replaceString STRING
- the variable name. Note that the variable name entered here (for instance, "myVariable") will be accessed in the page manager by wrapping it in {$} (for instance, "{$myVariable}").
- $resultString STRING
- the variable value
Return Values
No return value.
Examples
- Setting a variable
// set a variable named 'userName' so content managers can drop this into the copy, title or any other field when managing pages using this template eV::pageContentAttribSet('userName',$_SESSION['user']['firstName'] . " " . _SESSION['user']['lastName']); // now when content managers enter "{$userName}" into any field in page management, the session user's name will appear.