test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • gringo211985 Friend
    #185060

    Hi 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 Moderator
    #483949

    Because 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

    gringo211985 Friend
    #484063

    Hi 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 🙂

    jmespinosa Friend
    #519569

    It´s work for me¡:

    synapsis Friend
    #519591

    Thank 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?

    Arvind Chauhan Moderator
    #519652

    Hi 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

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

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