Sunday 11 September 2005 8:32:12 pm
Ahh, that said I now face another problem... In my news section (section 7, node 70) I have my articles displaying in a shortened format with image, title, date, shortened intro and read more link. This uses the article.tpl located in: mydesign/override/templates/line/article.tpl On my home page (section 6, node 2) I would like to omit the image and date whilst adding a "Recent News" header, so I have made a new home_article.tpl and placed it in: mydesign/override/templates/line/home_article.tpl I have set my overrides as follows: -
[home_article_line]
Source=line/article.tpl
MatchFile=line/home_article.tpl
Subdir=templates
Match[class_identifier]=article
Match[section]=6
[article_line]
Source=node/view/line.tpl
MatchFile=line/article.tpl
Subdir=templates
Match[class_identifier]=article
But my article_line override is still taking precedence over my home_article_line.
What I have tried and failed:
1. Using node/view/line.tpl as Source template
2. Adding Match[node]=2
3. Matching [article_line] to section 7
3. Changing the directory of my home_article.tpl
4. Changing the order of the overrides within override.ini.append.php 5. And many more variations + clearing cache constantly. Debug output shows no errors, I also have "list of used templates" enabled, it shows that the requested .tpl is line/article.tpl and the used template is the same. However with some configurations it shows that no template is requested or used, though the rendered output would suggest it is in-fact using the line/article.tpl Is it possible to override an existing override or am I simply barking up the wrong tree? Can anyone suggest what may be the problem and how I may overcome it? I havn't had any trouble with overrides until now; all of my other overrides have worked as expected. Cheers!
Pardon me while I burst into flames...
|