Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • tiganita Friend
    #207624

    Hello,

    I tried a lot, but nothing worked so far with this template.
    What I want:

    On top of the Megamenu (ja-header, top.header) there is already a position called “top.top-panel”.
    I’d like to split this one in 2 columns/positions. The left one should be used for the languageswitcher module and also aligned left, the right one for a certain login modul which should be aligned right, but not with css (direction: rtl). Best would be if I could style both seperately.

    I tried these two option in default.xml:

    1.


    <block name="top-panel" type="module">top-panel</block>
    <block name="top-panel2" type="module">top-panel2</block>

    Problem: They are not next to each other

    2.

    <block name="top-panel" type="spotlight">top-panel, top-panel2</block>

    Problem: Can’t align first left, second right.

    Is there another option?

    TomC Moderator
    #574853

    How about this suggestion? —> http://www.joomlart.com/forums/showt…-%28Updated%29

    tiganita Friend
    #574907

    Hello Tom,

    well, I tried that already but it didn’t work as expected. I’ll try another time but don’t know if it will work.

    tiganita Friend
    #641251

    Hello Tom,

    well, I tried that already but it didn’t work as expected. I’ll try another time but don’t know if it will work.

    tiganita Friend
    #739914

    Hello Tom,

    well, I tried that already but it didn’t work as expected. I’ll try another time but don’t know if it will work.

    Adam M Moderator
    #575053

    Hi @tiganita,

    Could you please provide your site url and clarify about the problem you’re getting with so I can assist you better ?

    tiganita Friend
    #575061

    Okay, here is what I did:

    Changed “templatesja_blazesblocksheader.php” so it looks like:


    <?php
    /*
    * ------------------------------------------------------------------------
    * JA Blazes Template for J25 & J31
    * ------------------------------------------------------------------------
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license - Copyrighted Commercial Software
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.com - http://www.joomlancers.com
    * This file may not be redistributed in whole or significant part.
    * ------------------------------------------------------------------------
    */
    // no direct access
    defined ( '_JEXEC' ) or die ( 'Restricted access' );

    ?>

    <?php $this->genBlockBegin ($block) ?>

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    <?php
    $app = JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>

    <h1 class="logo"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a> </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>
    </div>
    <?php endif; ?>

    <?php if( $this->countModules('top') ) : ?>
    <div id="ja-top" class="clearfix">
    <jdoc:include type="modules" name="top" style="raw" />
    </div>
    <?php endif; ?>
    <div id="ja-mainnav" class="clearfix">
    <?php
    if (($jamenu = $this->loadMenu())) {
    $jamenu->_params->set('mega-style',3);
    $jamenu->genMenu ();

    }
    ?>
    </div>

    <?php $this->genBlockEnd ($block) ?>

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

    <div class="main clearfix">
    <?php $jamenu->genMenu (1); ?>
    <!-- jdoc:include type="menu" level="1" / -->

    </div>
    </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>

    and “templatesja_blazesetclayoutsdefault.xml”


    <?xml version="1.0" encoding="utf-8"?>
    <layout name="desktop">
    <!--Extra css load for this layout-->
    <stylesheets>
    <file compatible="3.0">css/template-j30.css</file>
    </stylesheets>

    <blocks name="lanlog" style="xhtml">
    <block name="language" type="modules" style="raw">language</block>
    <block name="login-special" type="modules" style="raw">login-special</block>
    </blocks>

    <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="top-panel" type="modules">top-panel</block>
    <block name="header" type="header" main-inner="1"></block>
    <block name="top-title" type="modules">top-title</block>
    <block name="slideshow" type="modules">top-intro, slideshow</block>
    <block name="cpanel" type="usertools/cpanel"></block>
    <block name="topsl" type="spotlight">user1,user2,user3</block>
    <block name="topsl1" type="spotlight">user4,user5,user6,user7</block>
    <block name="topsl2" type="spotlight">user8,user9,user10</block>
    </blocks>

    <blocks name="middle" colwidth="33.3" fixheight="1">
    <block name="content-mass-bottom">content-mass-bottom</block>
    <block name="right2">left,right</block>
    </blocks>

    <blocks name="bottom" style="xhtml">
    <block name="position-special1" type="modules">position-special1</block>
    <block name="botsl" type="spotlight" specialwidth="33">user11,user12,user13,user14,user15,user16</block>
    <block name="botsl1" type="spotlight">user17,user18,user19</block>
    <block name="navhelper" type="navhelper"></block>
    <block name="footer" type="footer"></block>
    </blocks>

    </layout>

    and created new positions in “templatesja_blazestemplateDetails.xml”


    <positions>
    <position>hornav</position>
    <position>breadcrumbs</position>
    <position>search</position>
    <position>banner</position>
    <position>left</position>
    <position>right</position>
    <position>top</position>
    <position>user1</position>
    <position>user2</position>
    <position>user3</position>
    <position>user4</position>
    <position>user5</position>
    <position>user6</position>
    <position>user7</position>
    <position>user8</position>
    <position>user9</position>
    <position>user10</position>
    <position>user11</position>
    <position>footer</position>
    <position>syndicate</position>
    <position>debug</position>
    <position>ja_tabs</position>
    <position>position-special1</position>
    <position>language</position>
    <position>login-special</position>

    </positions>

    When opening the page with “?tp=1” I can see the newly created postitions with the modules associated to it. But looking at the normal page I can not see these.

    What am I missing?

    Adam M Moderator
    #575222

    Hi @tiganita,

    Please provide your site url and temporary admin account via private reply so I can investigate the problem for you.

    tiganita Friend
    #575246

    PM has been sent.

    Adam M Moderator
    #575328

    Hi @tiganita,

    Thanks for the info. I notice that there’s a problem with the code you added in templatesja_blazesblocksheader.php, please check the code below :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    to :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <?php endif ?>
    <?php if ($this->countModules('login-special')) : ?>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    Adam M Moderator
    #641658

    Hi @tiganita,

    Thanks for the info. I notice that there’s a problem with the code you added in templatesja_blazesblocksheader.php, please check the code below :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    to :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <?php endif ?>
    <?php if ($this->countModules('login-special')) : ?>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    Adam M Moderator
    #740320

    Hi @tiganita,

    Thanks for the info. I notice that there’s a problem with the code you added in templatesja_blazesblocksheader.php, please check the code below :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    to :

    <!-- Language/Login -->

    <?php if ($this->countModules('lanlog')) : ?>
    <div id="language" class="lanlog">
    <jdoc:include type="modules" name="lanlog" style="raw" />
    </div>
    <?php endif ?>
    <?php if ($this->countModules('login-special')) : ?>
    <div id="login" class="lanlog" align="right">
    <jdoc:include type="modules" name="login-special" style="raw" />
    </div>
    <?php endif ?>

    <!--//Language/Login -->

    tiganita Friend
    #575340

    Thanks Adam M,

    that did work out.
    I should have known myself, but working on different things at the same time isn’t always good. 😉

    tiganita Friend
    #641670

    Thanks Adam M,

    that did work out.
    I should have known myself, but working on different things at the same time isn’t always good. 😉

    tiganita Friend
    #740332

    Thanks Adam M,

    that did work out.
    I should have known myself, but working on different things at the same time isn’t always good. 😉

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

This topic contains 15 replies, has 3 voices, and was last updated by  tiganita 8 years, 10 months ago.

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