test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • krahy35 Friend
    #192192

    Hello,
    I want to add a new custom module and its position in the template ja rave.

    which files have changed?
    I want to add this:

    <jdoc:include type=”modules” name=”mymodul”/>

    in the CSS file:

    }
    # {MyModule
    ** width: 300px;
    ** height: 300px;
    ** position: absolute;
    ** top: 200px;
    ** left: 500px;
    }

    Thank you for your help
    Tomas

    pavit Moderator
    #512004

    Hi

    Could you post a screen shot of your new module position ?

    Where exactly you want to add it ?

    krahy35 Friend
    #512008

    Thank you for the quick reply!

    Here is my example.

    I am always adding these things to file index php and css template in the folder templates / rave / css / template.css
    Now in this template doesnt work 🙁


    1. example
    pavit Moderator
    #512012

    Hi

    You cannot add Module 2 and 3 because are external to the template – you can use 3rd part extensions for that anyway

    About instead module Module 1 , you already have a position there is called top-panel

    About Module 4 you can do in this way

    1) Open this file pluginssystemjat3jat3base-themesdefaultblocksheader.php and change it as shown below

    [PHP]<?php if($this->countModules(‘search’)) : ?>
    <div id=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    <div id=”ja-module4″>
    <jdoc:include type=”modules” name=”module4″ />
    </div>
    <?php endif; ?>[/PHP]

    Add the section for module4

    2) Open this file templatesja_ravetemplateDetails.xml and add in the Positions section the new position

    <position>module4</position>

    3) In this file templatesja_ravecsstemplate.css add the module4 section

    #ja-module4{
    width: 300px;
    height: 300px;
    position: absolute;
    top: 200px;
    left: 500px;
    }

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

This topic contains 4 replies, has 2 voices, and was last updated by  pavit 11 years, 1 month ago.

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