-
AuthorPosts
-
fotovi Friend
fotovi
- Join date:
- September 2014
- Posts:
- 15
- Downloads:
- 3
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
September 29, 2014 at 7:02 pm #201695Hello 🙂
I am using T3 and Purity III, blog layoutHow 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 30, 2014 at 7:39 am #551105Greetings 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 Friendfotovi
- Join date:
- September 2014
- Posts:
- 15
- Downloads:
- 3
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
October 15, 2014 at 5:46 am #553023Thanks, 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 16, 2014 at 1:43 am #553155The 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 Friendfotovi
- Join date:
- September 2014
- Posts:
- 15
- Downloads:
- 3
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
October 16, 2014 at 8:00 am #553213Hi 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 16, 2014 at 8:07 am #553214In 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 Friendfotovi
- Join date:
- September 2014
- Posts:
- 15
- Downloads:
- 3
- Uploads:
- 2
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
October 17, 2014 at 5:50 am #553341Ok, 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 🙂
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by fotovi 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum