-
AuthorPosts
-
July 18, 2011 at 6:31 pm #166423
Hi,
I’m new to the forum and to T3, I’m starting to playing around with it… I have a small problem and I searched in the forum, but didn’t find.
I want a module to show up only in article view: I created two templates, a default one and another one for articles. How do I apply that different template only to article view?
I thought that I need to modify html/com_content/article/default.php but that refers only to the main content…
So I tried with template override in the template settings, but if I put “com_content=article” the “article” template is applied also to frontpage…
Sure there is some easy way to achieve it, but I can’t see how :-[Thank you
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 19, 2011 at 4:03 pm #401904Hi saldsl
I don’t understand what you want. Could you show me some screenshot indicate what you want?
July 20, 2011 at 11:46 am #402090<em>@dohq 254136 wrote:</em><blockquote>Hi saldsl
I don’t understand what you want. Could you show me some screenshot indicate what you want?</blockquote>
Example: I want to use a three column template named “default” for all pages of the website except when I enter in article views (“option=com_content&view=article”), where I want a two column template named “articles”.
In the T3 template settings there’s the ability to override the default template for sections and single articles (identified by id) or components (identified by “com_xxx”). The problem is that article view is identified by “com_content&view=article and if I override the template for com_content the change is applied also for frontpage (com_content&view=featured) and category view…
Is there the ability to override also for article view, or I need to use an external component like metatemplate?
Thank you dohqMattia
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 23, 2011 at 4:52 am #402625Hi saldsl
In my understanding, you want to change layout of each article. In joomla 1.6, there is feature to do it. You can see more in http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6.
1 user says Thank You to chavan for this useful post
July 23, 2011 at 11:35 am #402673<em>@dohq 255091 wrote:</em><blockquote>Hi saldsl
In my understanding, you want to change layout of each article. In joomla 1.6, there is feature to do it. You can see more in http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6.</blockquote>
Well, I completely missed that! It’s exactly what I was searching for, but I was playing on Joomla 1.5 and didn’t saw these new options on J1.6.
Thank you dohq!July 25, 2011 at 4:19 pm #402950Well… it seems it was not what I’m searching for. :(( The layout override function in J1.6/1.7 only change the layout of content, but not of the whole template.
I attach an image to explain what I’m trying to achieve: the different template for frontpage and subsections (category blog view) is easily set in Template Management – <template_name> – Page assignments. But when I enter article view the template profile used is the one set for that subsection: I want to use another template profile specific for article view!
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 26, 2011 at 2:34 am #403008Hi saldsl
You could see Menu assignments (template manager) to change difference template via menu item.
Scott Lavelle FriendScott Lavelle
- Join date:
- November 2010
- Posts:
- 266
- Downloads:
- 16
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 64 times in 27 posts
July 27, 2011 at 11:37 pm #403360Is there a way for you to assign the “uncategorized” section and/or category and use that as if it were some assigned one?
Scott Lavelle - Technical Resource Solutions, LLC
Certified Joomla AdministratorAuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by Scott Lavelle 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Different template only in article view
Viewing 8 posts - 1 through 8 (of 8 total)