test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ramadji Friend
    #151247

    Hello,

    I would like to have an horizontal news scroller or news ticker module between the ja-login and ja-menu modules. How can I go about doing that? Has anybody done it before?

    Thanks in advance for your feedback.

    Ramadji

    toymaker Friend
    #344394

    If you prefer to complicate your life like me :), you can make changes to the template file and build a module position for your newsticker…

    Go to your index.php file inside your template directory and after line 112, add the following:


    <?php if($this->countModules('ja-topnewsticker')) : ?>
    <div id="ja-newsticker" class="ja-newsticker">
    <jdoc:include type="modules" name="ja-topnewsticker" />
    </div>
    <?php endif; ?>

    Then open your templateDetails.xml file and after line 37 add the new position, like this:


    <positions>
    <position>header</position>
    <position>hornav</position>
    <position>ja-topnewsticker</position>
    <position>breadcrumbs</position>

    Now add basic styles for correct positioning. Open your template.css file and after line 889 add the following:


    /* MY NEWS TICKER
    --------------------------------------------------------- */
    #ja-newsticker {
    position:absolute;
    bottom:2px;
    left: 10px;
    }

    /* in case your ticker uses a <p> or a <ul> to define news lines, addthe following code.
    You can change to whatever you may need. */
    #ja-newsticker p, #ja-newsticker ul, #ja-newsticker li {
    margin: 0;
    }

    This last piece of code should position the new div at the bottom of the header, but you should be able to easily make small adjustments and/or finetuning to this.

    Peace,
    Gabriel

    ramadji Friend
    #344471

    Toymaker,
    Thanks a lot for your feedback and the trick you’ve shared with all of us. I will try it out and will let you know. Much appreciated.
    Ramadji

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

This topic contains 3 replies, has 2 voices, and was last updated by  ramadji 14 years, 7 months ago.

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