| Static Section Pages The Static Section Page (Static Section) feature allows mapping of html pages to sections. These html pages may be placed/stored in any directory within the site root of your siteseed installation. The only exception are siteseed system directories (e.g. bo). |
$php$ MacroThe $php$ macro allows to execute PHP code in layouts. A set of PHP macro functions allows to access data of all other conventional macros quite easily.
Use this macro to allow execution of PHP code within your layouts: $php$ Note: Try $endphp$ if $phpend$ does not work for you. In the future both variants will be supported! Macro Scope...or how to access Siteseed variables: All macro functions including $php$ are executed within the scope of an internal Siteseed function. So in order to access global variables, e.g. interface variables, one needs to declare them global: $php$ PHP Macro FunctionsThere are PHP counterparts of all conventional macro functions. These PHP macro functions are only allowed to be used within layouts. They must not be used in Interfaces! The following PHP macro functions are currently available: checkfield(), checksubject(), field(), printfield(), macro(), and printmacro(). Here is a short documentation about how to use them: checkfieldbool checkfield(int $intFieldnumber) Note: This function does only allow to check one field at a time. Examples: if(checkfield(1)==true) checksubjectbool checksubject(int $intSubjectNumber) Note: This function does only allow to check one subject at a time. Examples: if(checksubject(1)==true) fieldstring field(int $intFieldNumber) Note: Returns the content of the field defined by $intFieldNumber. Examples: if(field(1)=="triggervalue") printfieldvoid printfield(int $intFieldNumber) Note: Prints the content of the field defined by $intFieldNumber Examples: if(field(2)!="") macrostring macro(string $strMacroName) Note: Returns the value of a conventional macro defined by $strMacroName Examples: echo macro(0); if(macro('author')=="admin") printmacrovoid printmacro(string $strMacroName) Note: Prints the value of a conventional macro defined by $strMacroName Examples: printmacro(0);
|
![]()
|
| ||||
|
| ||||
|
| ||||