Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • itisrama Friend
    #170328

    I need to group main menu, top spotlight, content, and bottom spotlight into single div. Just like the following layout, so I can style ja-container and make it round corner with box shadow

    <div id=”ja-wrapper”>
    <div id=”ja-header” class=”wrap “></div>
    <div id=”ja-container” class=”wrap ja-r1″>
    <div id=”ja-mainnav” class=”wrap “></div>
    <div id=”ja-topsl” class=”wrap “></div>
    <div class=”main clearfix”></div>
    <div id=”ja-botsl1″ class=”wrap “></div>
    <div id=”ja-botsl” class=”wrap “></div>
    </div>
    <div id=”ja-footer” class=”wrap “></div>
    </div>
    is it possible to do it with T3 Framework?

    Here is my block layout, what should I need to change?
    <?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″ style=”xhtml”></block>
    <block name=”mainnav” type=”mainnav” main-inner=”1″></block>
    <block name=”cpanel” type=”usertools/cpanel”></block>
    <block name=”topsl” type=”spotlight” special=”left” specialwidth=”66″ main-inner=”1″>slide,ads</block>
    </blocks>
    <blocks name=”middle” colwidth=”19″>
    <block name=”content-mass-top”>middle</block>
    <block name=”right1″ width=”21″>left</block>
    <block name=”right2″>right</block>
    </blocks>
    <blocks name=”bottom” style=”xhtml”>
    <block name=”botsl1″ type=”spotlight” main-inner=”1″>user1,user2,user3,user4,user5</block>
    <block name=”botsl” type=”spotlight” main-inner=”1″>user6,user7,user8,user9,user10</block>
    <block name=”footer” type=”footer” style=”xhtml”></block>
    </blocks>
    </layout>

    Blaine Friend
    #423025

    Hi itisrama!
    It seems you are needing custom work done. JoomSolutions and Elance are great places to find people for this as JA does not support customization.
    If you are not wanting to hire out the work, may I suggest a terrific video on T3 for you to watch as well as suggesting you search our great forum for how to add module positions in the T3 framework!
    thanks!

    pixelzombie Friend
    #423551

    Hi itisrama,

    I needed this kind of mod myself shortly and I’m willing to share 🙂
    I’ll do a detailed documentation here in the forum but for now you have to do these changes:

    __________________________________

    copy default.php
    from
    /plugins/system/jat3/base-themes/default/page/default.php
    to
    /templates/your_template_name/page/default.php

    make the following changes in you copied default.php @ your template folder

    change line 57 from this


    <!-- CONTENT -->

    to this


    <!-- NAVIGATION -->
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    </ul>
    <!-- CONTENT -->

    __________________________________

    copy mainnav.php
    from
    /plugins/system/jat3/base-themes/default/blocks/mainnav.php
    to
    /templates/your_template_name/blocks/mainnav.php

    make the following changes in you copied mainnav.php @ your template folder

    from line 14 from this


    defined('_JEXEC') or die('Restricted access');

    ?>
    <?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu (); ?>
    <!-- jdoc:include type="menu" level="0" / -->
    <?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
    <div id="ja-subnav" class="clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->
    </div>
    <?php endif;?>

    <ul class="no-display">
    <li><a href="<?php echo $this->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    </ul>

    to this


    defined('_JEXEC') or die('Restricted access');

    Yes, just delete the lines! 😀

    __________________________________

    Now you have the mainnav inside your ja-content wrapper.

    Spotlight

    For the spotlight you just have to edit your template layout in the backend like this:


    <blocks name="middle" colwidth="20">
    <block name="content-mass-top" type="spotlight" main-inner="1">user1,user2,user3,user4,user5</block>
    <block name="inset1">left</block>
    <block name="inset2">right</block>
    </blocks>

    You basically move it to the content-mass-top position. Very important: the left and right columns need to be set to inset1 and 2 in order to position the content-mass-top above those columns. Do the same for the bottom spotlight. Just position them in content-mass-bottom.

    __________________________________

    Done!
    I hope everybody can follow. I might wrap it up and write a tutorial 🙂 You may ask questions if you like

    Cheers

    Frank

    michelsmith Friend
    #425059

    Hi,

    Check the following information http://forum.joomla.org/viewtopic.php?p=2430374

    Hope this information helps you.

    andbeyond Friend
    #458451

    Hi Frank,

    I have used your solution and have managed to get it to work on my local installation (localhost).

    Everything displays well in Firefox and Safari on my Mac running Xampp including the main (dropline) menu.

    BUT when I upload it to the server it is not displaying the main menu.

    All other content is displaying within the main container (spotlights content etc). Other templates based on JA T3 blank template are working including the main menu in its normal block position.

    I cannot see any difference in the site set-up other than the cookie path in the global configuration.

    Can you think of anything that would be causing this?

    Sherlock Friend
    #458595

    <em>@andbeyond 326727 wrote:</em><blockquote>Hi Frank,

    I have used your solution and have managed to get it to work on my local installation (localhost).

    Everything displays well in Firefox and Safari on my Mac running Xampp including the main (dropline) menu.

    BUT when I upload it to the server it is not displaying the main menu.

    All other content is displaying within the main container (spotlights content etc). Other templates based on JA T3 blank template are working including the main menu in its normal block position.

    I cannot see any difference in the site set-up other than the cookie path in the global configuration.

    Can you think of anything that would be causing this?</blockquote>

    That’s strange! Would you mind share with me here the url where the issue is being seen ?

    andbeyond Friend
    #458913

    <em>@Sherlock Holmes 326910 wrote:</em><blockquote>That’s strange! Would you mind share with me here the url where the issue is being seen ?</blockquote>

    I would but I can’t it is on staging site behind a firewall. I could post images or code.

    Sherlock Friend
    #458983

    Hi andbeyond,

    Without seeing the problem url it’s hard to tell you what’s going wrong 🙂

    andbeyond Friend
    #459144

    Thanks for your interest but unfortunately I’m not permitted to allow you access to the staging server :(( I would if I could.

    Anyway I’ve partially solved the problem. What happened was when I transferred the template via SFTP to the staging server was that one folder (page) did not transfer. Therefore the menu would not show. I managed to transfer that folder individually and the menu appeared 😀

    There is/was some permissions issue that is preventing me from transferring some folders and also preventing me making changes via the Template Manager. It is not a Joomla issue it is a server issue.

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

This topic contains 9 replies, has 6 voices, and was last updated by  andbeyond 11 years, 10 months ago.

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