test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • testcouch Friend
    #195703

    hi,

    i’v tried to add a new Module Position to Block file mainnav.php to show next to Menu Navigation a additional Login Module.

    <!-- MAIN NAVIGATION -->
    <nav id="t3-mainnav" class="wrap t3-mainnav">
    <div class="container navbar">
    <div class="navbar-inner">

    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    <i class="icon-reorder"></i>
    </button>

    <div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
    <?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
    <?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
    <?php else : ?>
    <jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
    <?php endif ?>
    </div>
    <?php if($this->countModules('mainnavlogin')) : ?>
    <div id="ja-mainnavlogin" class="ja-mainnavlogin<?php $this->_c('mainnavlogin') ?>">
    <jdoc:include type="modules" name="<?php $this->_p('mainnavlogin') ?>" />
    </div>
    <?php endif; ?>
    </div>
    </div>
    </nav>
    <!-- //MAIN NAVIGATION -->

    ist the red marked code the correct one or missed i something except the XML file!?

    MoonSailor Friend
    #526886

    I just checked your site and had “Super Login” enabled, it’s showing normal.

    Could you explain in more details?


    1. 3-17-2014-1-58-07-PM
    testcouch Friend
    #527051

    <em>@MoonSailor 416587 wrote:</em><blockquote>I just checked your site and had “Super Login” enabled, it’s showing normal.

    Could you explain in more details?</blockquote>

    hi MoonSailor,

    yes my superlogin module is showed in mainnav. i was not sure if my code changes in mainnav.php are correct or not for a new module position.

    could you help me to add a new Block inluding module position Toolbar, between head and position-1, -2, -3, -4 Block?

    i’v added a screenshot about the position of new module position:

    these Toolbar module position is only used for logged in user.


    1. Module-Position-Toolbar
    MoonSailor Friend
    #527604

    <blockquote>
    could you help me to add a new Block inluding module position Toolbar, between head and position-1, -2, -3, -4 Block?
    </blockquote>

    If you want to add new block to position as in screenshot, you need to customize Jomsocial template . I am afraid it’s beyond our scope of support.

    testcouch Friend
    #527675

    <em>@MoonSailor 417479 wrote:</em><blockquote>If you want to add new block to position as in screenshot, you need to customize Jomsocial template . I am afraid it’s beyond our scope of support.</blockquote> the module position from my screenshot should be available on each template page, so i think it’s not a Jomsocial Module Position if its located between head Block and position-1, -2, -3, -4 Block!?

    MoonSailor Friend
    #527792

    <blockquote>
    the module position from my screenshot should be available on each template page, so i think it’s not a Jomsocial Module Position if its located between head Block and position-1, -2, -3, -4 Block!?
    </blockquote>

    The positions in your screenshot belongs to the toolbar of Jomsocial component.

    testcouch Friend
    #528078

    <em>@MoonSailor 417751 wrote:</em><blockquote>The positions in your screenshot belongs to the toolbar of Jomsocial component.</blockquote>

    that toolbar screenshot is only a example..i could puplish there also other modules like a newsslider or whatever!

    MoonSailor Friend
    #528200

    I am a little bit confused. In the first post, you have this snippet of code:


    <!-- MAIN NAVIGATION -->
    <nav id="t3-mainnav" class="wrap t3-mainnav">
    <div class="container navbar">
    <div class="navbar-inner">

    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
    <i class="icon-reorder"></i>
    </button>

    <div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
    <?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
    <?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
    <?php else : ?>
    <jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
    <?php endif ?>
    </div>
    <?php if($this->countModules('mainnavlogin')) : ?>
    <div id="ja-mainnavlogin" class="ja-mainnavlogin<?php $this->_c('mainnavlogin') ?>">
    <jdoc:include type="modules" name="<?php $this->_p('mainnavlogin') ?>" />
    </div>
    <?php endif; ?>
    </div>
    </div>
    </nav>
    <!-- //MAIN NAVIGATION -->

    When I checked your site, I see with module of position “mainnavlogin”, it shows normally after position “megamenu”.

    The toolbar in your screenshot is not kind of ‘Modules’ or part of template, it belongs to Joomsocial component instead.

    <blockquote>
    that toolbar screenshot is only a example..i could puplish there also other modules like a newsslider or whatever!
    </blockquote>

    You can add any position the same way you added the ‘mainnavlogin’ above. The important thing is that the place to add a position doesn’t belong to component content ( The toolbar in your attached screenshot belongs to component content, you can’t apply the way above to add position there).

    testcouch Friend
    #529081

    hi,

    thanks for your reply..i’v added some modifications in mainbody-left-content-right.php and created a new content-toolbar-top position. the toolbar module is now showed for logged in User but i would need your help to fix some css clashes. see my attached screenshoot how the toolbar should showed (second one)


    1. Content-Toolbar
    testcouch Friend
    #529886

    can someone please inspect my screenshot above?

    testcouch Friend
    #530353

    <em>@MoonSailor 418257 wrote:</em><blockquote>You can add any position the same way you added the ‘mainnavlogin’ above. The important thing is that the place to add a position doesn’t belong to component content ( The toolbar in your attached screenshot belongs to component content, you can’t apply the way above to add position there).</blockquote>

    How could i add a Module Position wich are showed only above Component/Content area and use the same width!?

    mainbody-left-content-right.php

    <div class="row">
    <div class="main-content <?php echo ($this->getClass($layout, $col)!='')?$this->getClass($layout, $col):'span12'; ?> pull-left" <?php echo $this->getData ($layout, $col++) ?>>
    <div class="main-content-inner">
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    </div>
    </div>

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

This topic contains 11 replies, has 2 voices, and was last updated by  testcouch 10 years, 8 months ago.

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