test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • vargajoom Friend
    #160523

    JA Community PLUS, 1.6

    I have followed the profile instructions, and the Content Block is hidden on home page, but the DIV tags and spacing remain, creating an extra space in the layout. I viewed the source and they are still there. I even tried the conditional front page code on the main container, but that didn’t work either, as if it isn’t seeing that the homepage is the front page.

    Phill Moderator
    #377807

    The content block in itself is gone but what you are seeing is the .main container which is still there as part of the code to display the left and right columns on that layout.

    Whay uo can do however is create a new profile for the homepage and remove all the blocks that are created in that area that you do not need. So your layout could look something like

    <?xml version="1.0" encoding="utf-8"?>
    <layout name="desktop">
    <!--Extra css load for this layout-->
    <stylesheets>
    </stylesheets>
    <blocks name="top" style="xhtml">
    <block name="absolute" type="modules" style="raw">absolute</block>
    <block name="top-panel" type="modules" style="raw" main-inner="1">top-panel</block>
    <block name="header" type="header" main-inner="1"></block>
    <block name="mainnav" type="mainnav" main-inner="1"></block>
    <block name="cpanel" type="usertools/cpanel"></block>
    <block name="slideshow" type="modules" style="raw">slideshow</block>
    <block name="sl-gallery" type="modules" style="raw">sl-gallery</block>
    <block name="topsl" type="spotlight" main-inner="1">user1,user2,user3</block>
    <block name="topsl1" type="header-spotlight" leftwidth="57">user4,user5</block>
    <block name="topsl2" type="spotlight" special="left" specialwidth="57" main-inner="1">user12,user13,user14</block>

    </blocks>
    <blocks name="middle" colwidth="21.5">
    <block name="right-mass-top">right-mass-top</block>
    <block name="content-top">content-top</block>
    <block name="content-bottom">content-bot</block>
    <block name="right1">left</block>
    <block name="right2">right</block>
    </blocks>
    <blocks name="bottom" style="xhtml">
    <block name="breadcrums" type="navhelper" main-inner="1"></block>
    <block name="content-bot1" type="modules">user7</block>
    <block name="content-bot2" type="modules" style="raw">user8</block>
    <block name="botsl" type="spotlight" special="left" specialwidth="54" main-inner="1">user9,user10,user11</block>
    <block name="footer" type="footer" main-inner="1"></block>
    </blocks>
    </layout>

    vargajoom Friend
    #377816

    Appreciate the quick response. I love the ability to manage the blocks this way. However, it doesn’t solve the issue in this case, as eliminating the blocks still does not eliminate the DIV tags, they are always present in the DEFAULT.php page.
    Guess i need a conditional phrase to put around the MAIN CONTAINER comments on the default page, but that doesn’t seem to work, as it doesn’t seem to recognize the HOME menu item as the front page. Is there a new conditional code to use with Joomla 1.6? (I notice that Home menu is now “featured articles” in 1.6, rather than “frontpage” in 1.5)

    I used this code for the conditional front page (which is now Featured page in 1.6)

    // Is Frontpage?
    $option = JRequest::getCmd('option');
    $view = JRequest::getCmd('view');

    $frontpage = ($option == 'com_content' && $view == 'featured');
    $is_article = ($option == 'com_content');
    if ($is_article && !$frontpage)
    {
    ?>
    <!-- MAIN CONTAINER -->

    <!-- //MAIN CONTAINER -->

    <?php } ?>

    Phill Moderator
    #377822

    If you remove all of the blocks that appear in that container then the div will not be displayed. If you show us exactly what you are trying to do then I am sure we can come up with something.

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

This topic contains 4 replies, has 2 voices, and was last updated by  Phill 13 years, 10 months ago.

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