-
AuthorPosts
-
June 19, 2015 at 7:02 pm #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 ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 19, 2015 at 7:31 pm #574853How about this suggestion? —> http://www.joomlart.com/forums/showt…-%28Updated%29
June 20, 2015 at 3:40 pm #574907Hello 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.
June 20, 2015 at 3:40 pm #641251Hello 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.
June 20, 2015 at 3:40 pm #739914Hello 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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 22, 2015 at 1:36 pm #575061Okay, 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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 23, 2015 at 2:55 pm #575246PM has been sent.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 7:41 am #575328Hi @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 -->
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 7:41 am #641658Hi @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 -->
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 24, 2015 at 7:41 am #740320Hi @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 -->
1 user says Thank You to Adam M for this useful post
June 24, 2015 at 8:23 am #575340Thanks Adam M,
that did work out.
I should have known myself, but working on different things at the same time isn’t always good. 😉June 24, 2015 at 8:23 am #641670Thanks Adam M,
that did work out.
I should have known myself, but working on different things at the same time isn’t always good. 😉 -
AuthorPosts
This topic contains 15 replies, has 3 voices, and was last updated by tiganita 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum