Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • fotovi Friend
    #201695

    Hello 🙂
    I am using T3 and Purity III, blog layout

    How can I assign to the blog article view a style / layout different from the bloglist view?

    Example:
    I want to see the list of blog articles in a layout without a sidebar,
    yet if an article is clicked (read more),
    a layout with sidebar should be displayed.

    Thank you

    Saguaros Moderator
    #551105

    Greetings fotovi,

    As I understand your question that you’re wanting to hide the sidebar in blog view page but show it in article details page, right?

    You can try with this tweak as below:

    – Let take this blog page: http://purity_iii.demo.joomlart.com/index.php/layout/new-layouts/blog for example.
    – You will go to backend settings of this menu item ‘Blog Layout’ > navigate to ‘Page Display’ tab and add a class called wannahidden as page class for this page: http://prntscr.com/4rovw0

    – Next, you create a new CSS file called custom.css in this directory: /templates/purity_iii/css/ and add this css rule:


    .view-category.wannahidden .t3-sidebar{ display: none;}

    .view-category.wannahidden .t3-content.col-xs-12.col-sm-8.col-md-9 {
    width: 100% !important;
    }

    Hope this helps.

    fotovi Friend
    #553023

    Thanks, Saguaros

    Would be fine if I wanted to hide a part,
    but my blog post (list) layout doesn’t have that block,
    that the article layout has. Even if it had – I don’t want the markup
    of the modules to appear in the source, even if invisible via CSS.

    I want it to be a totally different layout than the article page, different style, theme etc
    How do I assign a different T3 style to the article view?

    many thanks

    Saguaros Moderator
    #553155

    The same with default Joomla template style, with template based on T3 framework, if you wanna assign a template style to an article, you will need to assign it to the menu item which that article belongs to.

    fotovi Friend
    #553213

    Hi Saguaros

    Yes, that makes sense.
    But which menu item do I assign the blog-article style to?
    The item for the blog list view has the blog-list style applied already.

    Thanks

    Saguaros Moderator
    #553214

    In this case, the article will inherit the style from the menu item assigned to the blog list view page.

    Hence, you should customize the blog list view page, you can use Page Class Suffies to add specific style for a Joomla page

    fotovi Friend
    #553341

    Ok, I will have a look at how I can extend a T3 template’s functionality
    and try to add some routines for T3 style switching based on page class suffixes.

    Just hiding via CSS won’t do it.
    I need to control the HTML markup in the body.

    Thanks for your valuable time 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  fotovi 10 years ago.

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