Optional parameter page_id may take the following values:
Value
Description
omitted
Returns the title of current page.
Valid page id number
Returns the title of page having that id number..
^
Returns the title of parent page.
Parameter block_system_name specifies the system name of the block SiteSupra will look for at the given page.
Parameter property_name specifies name of the block property.
If SiteSupra found requested property, it adds optional parameter text1 to the end of the property value.
If SiteSupra failed to find the property, it shows parameter text2.
Macro commands returns only string values and cannot return arrays.
If you are referring to a property having its value as an array, for example, property type image, then the parameter property_name should have the following look: property_name,array_element_name.
Dmitry Poltaryonok, dmitry dot poltaryonok at sitesupra dot com | 12.07.2006 19:07
Page id should not be in square brackets. Square brackets meen that parameter is optional, so you correct prop macro is the following {$prop(343,Content1,titlecolor)} which can be used in string, text and html type properties.
Steven van Rij, s dot vanrij at relevant-advies dot nl | 12.07.2006 18:07
Okay thnx for the support.
But it is still not working. I keep getting the following error:
'undefined property'
I have declared my block as follows:
'titlecolor' => Array
(
'label' =>'Color of header',
'help' =>'Color of header',
'type' =>'color',
'value' =>'#FF0066'
),
my prop function is:
{$prop([343],Content1,titlecolor,value)}
I also tried
{$prop([343],Content1,titlecolor)}
What am i doing wrong?
Dmitry Poltaryonok, dmitry dot poltaryonok at sitesupra dot com | 12.07.2006 17:07
If may use $prop as name for variable ({$prop} in this case you need to set $prop variable using $suTMPL->set('prop', 'somevalue');) in .tmpl file, but not as $prop macro command. Macro is not working inside .tmpl file.
Steven van Rij, s dot vanrij at relevant-advies dot nl | 12.07.2006 17:07
Is it possible to use the $prop command in the ".tmpl-file" of a block?