I am new to CMS MS and php smarty etc.
I am working on a site and have used cataloger to display projects, and I have been able to alter the cataloger item template to display only those fields that have content
Code: Select all
{if $2client!=''}
It would be useful to be able to change the template on a basic page dependent on the content. ie I have two content blocks, if the second content block doesn't have any "content" I would like to be able to change the display so that the containing div is not displayed. I was assuming that if I could find the template variables that I would be able to implement something similar to the above. However, I can't find the required variables. I have used the TAG
Code: Select all
{get_template_vars}
Am I on the right track? is so how can I find the variables. I did see a post about a UDT, but as I am not a programmer I don't know what this is, or what I need to do with the examples given.