-
AuthorPosts
-
kcrbsd Friend
kcrbsd
- Join date:
- January 2011
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
February 18, 2012 at 4:00 pm #174019Hi,
I need New Module Position in top area how i want to do it anyone please explain to me..
I attach screen shot position where i want…
waiting replay…
thanks
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
February 18, 2012 at 8:31 pm #438832Hi
Goto this file templatesja_nexblocksheader.php now you have
// No direct access
defined('_JEXEC') or die;
?>
<?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; ?>
<div class="topheader clearfix">
<?php if($this->countModules('search')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="search" />
</div>
<?php endif; ?><?php if($this->countModules('newmod')) : ?>
<div id="ja-newmod">
<jdoc:include type="modules" name="newmod" />
</div>
<?php endif; ?><?php if($this->countModules('social')) : ?>
<div id="ja-social">
<jdoc:include type="modules" name="social" />
</div>
<?php endif; ?>
</div>Add the line marked in blue
Then goto this file templatestemplateDetails.xml and add this code to the end of the positions section
<position>newmod</position>
Then goto this file templatesja_nexcsstemplate.css and add at the end this lines of css code
#ja-newmod {
float: left;
margin-right: 70px;
margin-top: 15px;
}Regards
4 users say Thank You to pavit for this useful post
kcrbsd Friendkcrbsd
- Join date:
- January 2011
- Posts:
- 37
- Downloads:
- 0
- Uploads:
- 24
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
February 19, 2012 at 1:42 pm #438889Hi Pavit
Thanks that works for me..
anthonyberot Friendanthonyberot
- Join date:
- February 2012
- Posts:
- 68
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
February 22, 2012 at 10:45 pm #439553That worked, I will now have to play with it to position it correctly.
October 26, 2012 at 4:46 pm #471202Hi,
how do I create a new position for a module between the Header and Top-mainnav? As shown in the attached image.
Thank you,
Diogo Brandão
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 1, 2012 at 4:46 pm #474884Hi oseusite
You still need help on this ? or maybe you solved ?
December 2, 2012 at 12:41 am #474895Hi pavit,
Thank you for your attention. Yes, I still need help, can you help?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 2, 2012 at 9:01 am #474907<em>@oseusite 348791 wrote:</em><blockquote>Hi pavit,
Thank you for your attention. Yes, I still need help, can you help?</blockquote>
Hi
To have a new module position make these changes
1) From your template manager –>JA_Nex – Default –>LAYOUTS Tab –> Default edit the layout in this way
<?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="cpanel" type="usertools/cpanel"></block>
<block name="top-panel" type="modules" style="raw" main-inner="1">top-panel</block>
<block name="topmenu" type="topmenu" ></block>
<block name="header" type="header" ></block>
<block name="topsl4" main-inner="1">newmod</block> <----Add this block
<block name="mainnav" type="mainnav" ></block>
<block name="topbar" type="topbar"></block>
<block name="breadcrums" type="breadcrums"></block>
<block name="slideshow" type="modules" main-inner="1">slideshow</block>
<block name="topsl1" type="spotlight" special="left" specialwidth="50" main-inner="1" >sl1-1,sl1-2,sl1-3</block>
<block name="topsl2" main-inner="1">slider</block>
<block name="topsl3" type="spotlight" main-inner="1">user1,user2,user3,user4</block>
</blocks>
<blocks name="middle" colwidth="25" main-inner="1">
<block name="content-mass-top">content-mass-top</block>
<block name="content-mass-bottom">content-mass-bottom</block>
<block name="inset2">left</block>
<block name="right1">right</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl" type="spotlight" wrap-inner="1" >user5,user6,user7,user8</block>
<block name="botsl1" type="spotlight" main-inner="1" wrap-inner="1">menu-footer</block>
<block name="botsl2" type="spotlight" special="left" specialwidth="75" main-inner="1" >foot-left,foot-right</block>
<block name="footer" type="footer" ></block>
</blocks>
</layout>Save the Layout
2) Goto this file templatesja_nextemplateDetails.xml and add this new position <position>newmod</position>
Save your file
Now you have a new position called newmod
Regards
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 4 voices, and was last updated by pavit 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum