I been creating templates of things I want to show up on pages and then I add in the template ##include/somefile.htm## and then it places the information I need. I am actually building several view pages that will have a specific look or task. So I want to create an if statement that based on some value in the database results will show a specific layout template.
Example using the view.htm page, I have a database with a field called layout, and if layout = 1 then it uses a specific layout template inserted in the view.htm page.
layout value 1 would need to produce ##include/viewlayout1.htm##
layout value 2 would need to produce ##include/viewlayout2.htm##
So should there be an if statement in the body of the view template or should I use event / snippet? I am not sure what direction to go or what would be the easiest. I am not sure how to build if statements in the body, I know I have seen examples like ##if bDynamicPermissions##, but not sure how it is generated.
Thanks
Kim