Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • saldsl Friend
    #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 Friend
    #401904

    Hi saldsl

    I don’t understand what you want. Could you show me some screenshot indicate what you want?

    saldsl Friend
    #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 dohq

    Mattia

    chavan Friend
    #402625

    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.

    saldsl Friend
    #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!

    saldsl Friend
    #402950

    Well… 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!


    1. templates
    chavan Friend
    #403008

    Hi saldsl

    You could see Menu assignments (template manager) to change difference template via menu item.

    Scott Lavelle Friend
    #403360

    Is 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 Administrator

Viewing 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, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum