Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • kunoichidee Friend
    #149668

    Hello,
    I need to add a new module position to my template called ‘absolute’.

    Now I’ve found that I should enter te following code in de inde.php file of the template

    <blockquote>+ Open templates/ your template / index.php file, find the place where you want to add this position, and then add following code section:
    Code:

    <?php if($this->countModules(‘ja_newposition’)) : ?>
    <jdoc:include type=”modules” name=”ja_newposition” />
    <?php endif; ?>

    </blockquote>

    But here is the code of my index.php file, where do I put the code and how? do I adjust it? leave some hooks or something out? It seems like it doens’t fit in anywhere!
    I’ve tried various ways but I keep getting a blank page when loading the page after entering the code?

    [PHP]<?php
    /*
    # ————————————————————————
    # JA Teline III – Version 1.3 – Licence Owner JA171983
    # ————————————————————————
    # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    # @license – Copyrighted Commercial Software
    # Author: J.O.O.M Solutions Co., Ltd
    # Websites: http://www.joomlart.comhttp://www.joomlancers.com
    # This file may not be redistributed in whole or significant part.
    # ————————————————————————
    */

    // no direct access
    defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );

    include_once (dirname(__FILE__).DS.’libs’.DS.’ja.template.helper.php’);

    $tmplTools = JATemplateHelper::getInstance($this, array(‘ui’));

    # Auto Collapse Divs Functions ##########
    $ja_left = $this->countModules(‘left’) || ($tmplTools->getParam(JA_TOOL_MENU) == 1);
    $ja_right = $this->countModules(‘right’);

    if ( $ja_left && $ja_right ) {
    $divid = ”;
    } elseif ( $ja_left ) {
    $divid = ‘-fr’;
    } elseif ( $ja_right ) {
    $divid = ‘-fl’;
    } else {
    $divid = ‘-f’;
    }
    $tmplTools->setParam (‘divid’, $divid);

    $curidx = $tmplTools->getCurrentMenuIndex();
    //if ($curidx) $curidx–;

    //Calculate the width of template
    $tmplWidth = ”;
    $tmplWrapMin = ‘100%’;
    switch ($tmplTools->getParam(JA_TOOL_SCREEN)){
    case ‘auto’:
    $tmplWidth = ‘97%’;
    break;
    case ‘fluid’:
    $tmplWidth = intval($tmplTools->getParam(‘ja_screen_width’));
    $tmplWidth = $tmplWidth ? $tmplWidth.’%’ : ‘90%’;
    break;
    case ‘fix’:
    $tmplWidth = intval($tmplTools->getParam(‘ja_screen_width’));
    $tmplWrapMin = $tmplWidth ? ($tmplWidth+1).’px’ : ‘751px’;
    $tmplWidth = $tmplWidth ? $tmplWidth.’px’ : ‘750px’;
    break;
    default:
    $tmplWidth = intval($tmplTools->getParam(JA_TOOL_SCREEN));
    $tmplWrapMin = $tmplWidth ? ($tmplWidth+1).’px’ : ‘751px’;
    $tmplWidth = $tmplWidth ? $tmplWidth.’px’ : ‘750px’;
    break;
    }

    $tmplTools->setParam (‘tmplWidth’, $tmplWidth);
    $tmplTools->setParam (‘tmplWrapMin’, $tmplWrapMin);

    //Main navigation
    $ja_menutype = $tmplTools->getParam(JA_TOOL_MENU, ‘css’);
    $jamenu = null;
    if ($ja_menutype && $ja_menutype != ‘none’) {
    $japarams = new JParameter(”);
    $japarams->set( ‘menutype’, $tmplTools->getParam(‘menutype’, ‘mainmenu’) );
    $japarams->set( ‘menu_images_align’, ‘left’ );
    $japarams->set( ‘menupath’, $tmplTools->templateurl() .’/ja_menus’);
    $japarams->set(‘menu_title’, 0);

    $tmplTools->loadMenu($japarams);
    }

    //End for main navigation

    $layout = $tmplTools->getLayout ();
    if ($layout) {
    $tmplTools->display ($layout);
    }[/PHP]

    micrantha Friend
    #337021

    Hello kunoichidee,

    Where do you want your new module position?
    Teline III is a T3 Framework template, so template files are organized different. You have to open template/layouts/blocks/header.php or one of the other files there to add a new position.

    But for T3 framework there is also different method. Take a look in userguides:
    http://wiki.joomlart.com/wiki/JA_Template_Framework/Guides
    http://wiki.joomlart.com/wiki/JA_Template_Framework/FAQs

    Good luck,
    Micrantha

    kunoichidee Friend
    #337040

    Thanks very much!!! 🙂

    I got it, I added the code in de header.php like you said and typed in the position for the module to select it, and it works! 🙂

    thanks

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

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

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