-
AuthorPosts
-
gringo211985 Friend
gringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
February 18, 2013 at 1:25 pm #185060Hi there,
I want to use single article for some pages, but when selected in the menu nothing shows up.
How can I display a single article?
(at the minute I am using modules for single articles which is not good)
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
February 19, 2013 at 5:16 pm #483949Because Home template style was disabled MAIN COMPONENT on Home page but you can add it into here
Open templates/ja_mitius/tpls/blocks/mainbody-home.php file
from
<?php if ($this->countModules($mastcol)) : ?>
<!-- MASSCOL 1 -->
<div class="ja-mastcol ja-mastcol-1<?php $this->_c($mastcol)?>">
<jdoc:include type="modules" name="<?php $this->_p($mastcol) ?>" style="T3Xhtml" />
</div>
<!-- //MASSCOL 1 -->
<?php endif ?>change to
<?php if ($this->countModules($mastcol)) : ?>
<!-- MASSCOL 1 -->
<div class="ja-mastcol ja-mastcol-1<?php $this->_c($mastcol)?>">
<jdoc:include type="modules" name="<?php $this->_p($mastcol) ?>" style="T3Xhtml" />
</div>
<!-- //MASSCOL 1 -->
<?php endif ?>
<jdoc:include type="component" />
And you can use this guide and make Menu Item Article Single Article
Let me know the result
2 users say Thank You to Ninja Lead for this useful post
gringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
February 20, 2013 at 1:54 pm #484063Hi Ninja,
Thanks for the reply, I have abandoned this project but for helping others I think it should be left up.
Thanks again for the help 🙂
2 users say Thank You to gringo211985 for this useful post
jmespinosa Friendjmespinosa
- Join date:
- July 2009
- Posts:
- 30
- Downloads:
- 1
- Uploads:
- 2
- Thanks:
- 23
- Thanked:
- 3 times in 1 posts
January 23, 2014 at 5:43 pm #519569It´s work for me¡:
1 user says Thank You to jmespinosa for this useful post
synapsis Friendsynapsis
- Join date:
- April 2007
- Posts:
- 234
- Downloads:
- 18
- Uploads:
- 28
- Thanks:
- 58
- Thanked:
- 19 times in 1 posts
January 23, 2014 at 9:09 pm #519591Thank you @ninja Lead! I was going crazy trying to figure out why my single article layouts weren’t working! So why on earth was that removed? What was the template designer thinking? Overrides are how we’re SUPPOSED to be customizing templates for best results and ease of updating, no?
1 user says Thank You to synapsis for this useful post
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
January 24, 2014 at 8:45 am #519652Hi synapsis,
Sometimes, the concept of the template requires us to override the default layouts. The solution is pretty easy but it deviates from the default layout of the demo site.
Yes, our fault is that we should have mentioned the same in the documentation along with solution to revert to default behaviour.
I am lining this up to get updated in the documentation site. Please feel free to PM me incase you find anything else, that should have been highlighted in the documentation.
Regards
Arvind
-
AuthorPosts
This topic contains 6 replies, has 5 voices, and was last updated by Arvind Chauhan 10 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum