Functions:pageContentAttribSet
From Whirlwind eCommerce Wiki
Revision as of 04:18, 8 October 2008 by 71.163.185.8 (Talk) (New page: == Description == Creates a variable that can be used in by content managers in page management. == Syntax == eV::pageContentAttribSet($replaceString,$resultString) == Paramaters == *$re...)
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
- $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.
See Also
pageContentAttribsSet pageContentAttribStart/pageContentAttribEnd