I'm trying to do a dynamic include (<%include thistempfile.html%>) of a template file inside a template during the build process.
I currently have code like this inside the category template and it works
<%if category_name eq 'catA'%><%include thisAtemplate.html%><%endif%>
<%if category_name eq 'catB'%><%include thisBtemplate.html%><%endif%>
<%if category_name eq 'catC'%><%include thisCtemplate.html%><%endif%>
I want to add a new field (IncludeTemplate) on the Category file which will contain the name of the template I want to include.
Can I do this with a global? If so, what would the global look like, since I haven't gotten it to work yet.
tia,
-devnick
I currently have code like this inside the category template and it works
Code:
<%if category_name eq 'catA'%><%include thisAtemplate.html%><%endif%>
<%if category_name eq 'catB'%><%include thisBtemplate.html%><%endif%>
<%if category_name eq 'catC'%><%include thisCtemplate.html%><%endif%>
I want to add a new field (IncludeTemplate) on the Category file which will contain the name of the template I want to include.
Can I do this with a global? If so, what would the global look like, since I haven't gotten it to work yet.
tia,
-devnick