Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • teetide Friend
    #125224

    I need to add the following module positions to Justicia:

    1. A banner module position in the header section where user tools position is located now.

    2. Disable the current pathway function and put a module position where the pathway is located now. This position will be used for a news scroller or static content.

    Guidance on how to accomplish this would be greatly appreciated.

    TeeTide

    cssyeah Moderator
    #237441

    Hi TeeTide,

    1. Add a banner module position in the header, you need replace the following code section:


    <?php if ($ja_tool) { ?>
    <div id="ja-usertools">
    <?php genToolMenu($ja_tool); ?>
    </div><div class="clr"></div>
    <?php } ?>

    by


    <?php if ( mosCountModules('banner') ) { ?>
    <div id="ja-banner2">
    <?php mosLoadModules('banner') ?>
    </div>
    <?php } ?>

    2. Disable the current pathway function and replace by other module:

    Goto about line 204 and replace the following code section:


    <!-- BEGIN: PATHWAY -->
    <div id="ja-pathwaywrap">
    <div id="ja-pathway">
    You are here: <?php mosPathway(); ?>
    </div>
    </div>
    <!-- END: PATHWAY -->

    by

    <!-- BEGIN: PATHWAY -->
    <?php if ( mosCountModules('user10') ) { ?>
    <div id="ja-pathwaywrap">
    <div id="ja-pathway">
    <?php mosLoadModules('user10', -2) ?>
    </div>
    </div>
    <?php } ?>
    <!-- END: PATHWAY -->

    teetide Friend
    #237456

    Thank you Trungch.

    Could you please give me the same module additions for the 1.5 version?

    Regards.
    TeeTide

    cssyeah Moderator
    #238702

    The same in the index.php file ( version 1.5 stable):

    1. Add new banner module.
    You need replace the following code section:


    <?php if ($JAconfig->ja_tool) { ?>
    <div id="ja-usertools">
    <?php $tempTools->genToolMenu($JAconfig->ja_tool); ?>
    </div><div class="clr"></div>
    <?php } ?>

    by


    <?php if ( $this->countModules("banner2") ) { ?>
    <div class="ja-banner">
    <jdoc:include type="modules" name="banner2" style="xhtml" />
    </div>
    <?php } ?>

    2. Disable the current pathway function and replace by other module:
    Goto about line 182 and replace the following code section:


    <!-- BEGIN: PATHWAY -->
    <div id="ja-pathwaywrap">
    <div id="ja-pathway">
    <?php if ($this->countModules('breadcrumb')) { ?>
    <strong>You are here:</strong> <jdoc:include type="modules" name="breadcrumb" />
    <?php } ?>
    </div>
    </div>
    <!-- END: PATHWAY -->

    by


    <?php if ( $this->countModules('user10') ) { ?>
    <div id="ja-pathwaywrap">
    <div id="ja-pathway">
    <jdoc:include type="modules" name="user10" style="xthml" />
    </div>
    </div>
    <?php } ?>

    j1melee Friend
    #271278

    Hi!

    Not sure if it’s the same, but how would I modify the index.php file so that I can place a custom module in the user tools position?

    🙂

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

This topic contains 5 replies, has 3 voices, and was last updated by  j1melee 16 years, 2 months ago.

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