KK wrote:
- Code: Select all
<cms:if "<cms:get_custom_field 'site_name' masterpage='globals.php' />" >
<cms:get_custom_field 'site_name' masterpage='globals.php' />
</cms:if>
or to avoid fetching the value twice from the database, use this -
- Code: Select all
<cms:set my_value="<cms:get_custom_field 'site_name' masterpage='globals.php' />" />
<cms:if my_value >
<cms:show my_value />
</cms:if>
Does this help?
nice thanks. Tried the first example but with operators and it didn't work but if you store it in a variable it worked.