Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • kcrbsd Friend
    #174019

    Hi,

    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


    1. ja_nex
    pavit Moderator
    #438832

    Hi

    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

    kcrbsd Friend
    #438889

    Hi Pavit

    Thanks that works for me..

    anthonyberot Friend
    #439553

    That worked, I will now have to play with it to position it correctly.

    oseusite Friend
    #471202

    Hi,

    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


    1. new_position
    pavit Moderator
    #474884

    Hi oseusite

    You still need help on this ? or maybe you solved ?

    oseusite Friend
    #474895

    Hi pavit,

    Thank you for your attention. Yes, I still need help, can you help?

    pavit Moderator
    #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


    1. newmod
Viewing 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