1
I would like to create a new html template for an existing module. I know that I can clone and edit existing template sets, but how do I add a template to an existing template set?
Why am I doing this?
The news module that I am using has a "main/index" page that creates a list of articles by including the "article" template in this way:
<{section name=i loop=$columns}>
<{foreach item=story from=$columns[i]}> <{include file="db:news_item.html" story=$story}><{/foreach}> |
<{/section}>
Because of the way the template "news-item.html" is styled, the main page that includes it is formatted badly. I don't want to change the "news-item.html" template styles because this template dictates how an individual article is displayed.
What I would like to do is create another template that uses different styling, call it "news_item2.html", add it to the existing set and then modify the "main" page so that it instead includes from the new template.