Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • faktapress Friend
    #146042

    How can I modify the layout of Teline3 to add an extra module position at the very top?
    Is there a step-by-step description somewhere? Or can someone help me with a quick instruction?
    Looking forward to your kind advice!
    /V

    micrantha Friend
    #323729

    Hello,

    You can add a new module position with this code:

    <?php if($this->countModules('position-name')) : ?>
    <div id="#">
    <jdoc:include type="modules" name="position-name" style="xhtml" />
    </div>
    <?php endif; ?>

    But where to add this code?
    That depends on what layout you use.

    For default layout:
    Go to template > layouts > default.php

    In this framework you see where the header-block is loaded:

    <div id="ja-wrapper">
    <a name="Top" id="Top"></a>

    <!-- HEADER -->
    <?php $this->loadBlock('header') ?>
    <!-- //HEADER -->

    So you could add your module-position above the header-block, or you can change the header-block itself, which is more consequent.

    Open template > layouts > blocks > header.php
    This file opens with defining the header-space:

    <div id="ja-header" class="wrap">
    <div class="main">
    <div class="inner clearfix">
    ..............

    so here you can add a new module-position where you want it to appear.
    Give the module position a unique name.
    Add this name to the list of positions in the .xml-file of the template.
    Position your new module-position by adding an id to the containing div and styling it in your template.css

    Succes,
    Micrantha

    iverjames Friend
    #325087

    Hi, almost the same question i have here.

    What i want to do is to insert my adsense code directly in col-mass-2 postiion without installing adsense modules in backend. IS this possibel???

    Thank you in advance!

    micrantha Friend
    #325125

    Hello iverjames,

    I don’t know, never worked with adsense.

    But you could experiment with the layout-block right.php (!backup first of course!).
    There you can find the code for col-mass2:


    <?php
    $pos = $this->getPositionName ('right-mass-bottom');
    if ($this->countModules($pos)): ?>
    <div class="ja-mass ja-mass-bottom clearfix">
    <jdoc:include type="modules" name="<?php echo $pos;?>" style="JAxhtml" />
    </div>
    <?php endif; ?>

    Try adding your code before or after these lines.

    Succes,
    Micrantha

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

This topic contains 4 replies, has 3 voices, and was last updated by  micrantha 15 years ago.

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