Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • nilgunce Friend
    #203158

    Hi;
    I need an module position for my default layout. How can I set up that?
    Awaiting urgent reply.
    Thank you in advance.
    Nilgünce


    1. layout
    jooservices Friend
    #557044

    Hi there,
    Please check templatesubertpls and modify which profile you are using to inject your customize code.

    Thank you,
    Viet Vu

    nilgunce Friend
    #557118

    Thanks Viet VU;
    ı have tried to do what you said but unable to set it.
    here is my default layour under local/tpls;
    ?>

    <!DOCTYPE html>
    <html lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>”
    class='<jdoc:include type=”pageclass” />’>

    <head>
    <jdoc:include type=”head” />
    <?php $this->loadBlock(‘head’) ?>
    <?php $this->addCss(‘layouts/docs’) ?>
    </head>

    <body>

    <div class=”t3-wrapper”> <!– Need this wrapper for off-canvas menu. Remove if you don’t use of-canvas –>

    <?php $this->loadBlock(‘header’) ?>

    <?php $this->loadBlock(‘masthead’) ?>

    <?php $this->loadBlock(‘submenu’) ?>

    <?php $this->loadBlock(‘mainbody’) ?>

    <?php $this->loadBlock(‘spotlight-1’) ?>

    <?php $this->loadBlock(‘full-width’) ?>

    <?php $this->loadBlock(‘navhelper’) ?>

    <?php $this->loadBlock(‘footer’) ?>

    </div>

    </body>

    </html>

    What my custom code will be in order to achive my goal?
    This is very urgent issue for me tol solve.
    I am waiting your kind assitance.
    nilgunce

    jooservices Friend
    #557124

    Hi there,
    # Which profile you are using ? Are you sure it’s default profile ?
    #


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

    <?php $this->loadBlock('masthead') ?>

    <?php $this->loadBlock('submenu') ?>

    <?php $this->loadBlock('mainbody') ?>

    <?php $this->loadBlock('spotlight-1') ?>

    <?php $this->loadBlock('full-width') ?>

    <?php $this->loadBlock('navhelper') ?>

    <?php $this->loadBlock('footer') ?>

    You can check into subblocks at templatesubertplsblocks if you want to inject your code into block.
    And of course, please clear all caches after modified.

    Thank you,
    Viet Vu

    nilgunce Friend
    #557130

    I need to install hem blog under sub menu block.

    nilgunce Friend
    #557132

    <?php
    /**
    * ————————————————————————

    * Uber Template

    * ————————————————————————

    * Copyright (C) 2004-2011 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.

    * ————————————————————————
    */

    defined(‘_JEXEC’) or die;
    ?>

    <!DOCTYPE html>
    <html lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>”
    class='<jdoc:include type=”pageclass” />’>

    <head>
    <jdoc:include type=”head” />
    <?php $this->loadBlock(‘head’) ?>
    <?php $this->addCss(‘layouts/docs’) ?>
    </head>

    <body>

    <div class=”t3-wrapper”> <!– Need this wrapper for off-canvas menu. Remove if you don’t use of-canvas –>

    <?php $this->loadBlock(‘header’) ?>

    <?php $this->loadBlock(‘masthead’) ?>

    <?php $this->loadBlock(‘submenu’) ?>

    <?php $this->loadBlock(‘uber-home’) ?>

    <?php $this->loadBlock(‘mainbody’) ?>

    <?php $this->loadBlock(‘spotlight-1’) ?>

    <?php $this->loadBlock(‘full-width’) ?>

    <?php $this->loadBlock(‘navhelper’) ?>

    <?php $this->loadBlock(‘footer’) ?>

    </div>

    </body>

    </html>
    I add “uber-home” position under sub-menu position and than compose a test mosule yo that position but I can not see any content in my “uber-home ” position on my front end.
    How may I set that?
    nilgunce

    jooservices Friend
    #557134

    Hi there,
    Please check below video clip as tutorial. It’s all about HTML works with basic Joomla! Development skill.

    http://docs.joomla.org/Jdoc_statements

    https://www.dropbox.com/s/i44ju1957u8eo7m/2014-12-01_13-19-50.mp4?dl=0

    Sorry my lack of English speaking.

    Thank you,
    Viet Vu

    nilgunce Friend
    #557137

    All my need is; to put any module under sub-menu . In order to do this I have to put module position onder sub-menu module position.

    jooservices Friend
    #557140

    Hi there,
    I’m not sure what’s blocking you at moment.
    With above video you can implement any customize code, and of course include your custom module position under sub-menu.
    Here is another screenshot with your live site

    https://www.dropbox.com/s/amvncuxe5s2r4sa/2014-12-01_13-59-25.png?dl=0

    # Use debugger than we can see we’r looking for wrap ja-submenu.
    # Use search string to locate which file of it:

    templatesubertplsblockssubmenu.php

    # Inside this file


    <?php
    /**
    * @package T3 Blank
    * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;
    ?>

    <?php if ($this->countModules('submenu')) : ?>
    <div class="wrap ja-submenu <?php $this->_c('submenu') ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p('submenu') ?>" style="raw" />
    </div>
    </div>
    <?php endif ?>

    You can see how this module render. Now you can inject your custom module here.

    Note:// This block have PHP condition to check submenu modules exists before render.

    Thank you,
    Viet Vu

    Saguaros Moderator
    #557162

    Hi Nilgünce,

    To create a module position in default layout as shown in your attachment, please follow the steps:

    1. Open the files in folder: “templatesubertplsblocksmainbody” then add new position before the MAIN CONTENT section. In this case we add position “position-1” to the file: two-sidebar.php . The following is the code that I used.

    <div class="t3-content col-xs-12 col-md-12 col-md-push-12"">
    <jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="T3Xhtml" />
    </div>

    Please note that you can change the class to meet your expectation.

    The layout now will look like this:

    <?php
    /**
    * @package T3 Blank
    * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;

    /**
    * Mainbody 3 columns, content in center: sidebar1 - content - sidebar2
    */
    ?>

    <div id="t3-mainbody" class="container t3-mainbody">
    <div class="row">
    <div class="t3-content col-xs-12 col-md-12 col-md-push-12"">
    <jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="T3Xhtml" />
    </div>

    <!-- MAIN CONTENT -->
    <div id="t3-content" class="t3-content col-xs-12 col-md-6 col-md-push-3">
    <?php if($this->hasMessage()) : ?>
    <jdoc:include type="message" />
    <?php endif ?>
    <jdoc:include type="component" />
    </div>
    <!-- //MAIN CONTENT -->

    <!-- SIDEBAR 1 -->
    <div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars['sidebar1']) ?>">
    <jdoc:include type="modules" name="<?php $this->_p($vars['sidebar1']) ?>" style="T3Xhtml" />
    </div>
    <!-- //SIDEBAR 1 -->

    <!-- SIDEBAR 2 -->
    <div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars['sidebar2']) ?>">
    <jdoc:include type="modules" name="<?php $this->_p($vars['sidebar2']) ?>" style="T3Xhtml" />
    </div>
    <!-- //SIDEBAR 2 -->

    </div>
    </div>

    2. Replicate the step for other blocks of the Mainbody in ‘templatesubertplsblocksmainbody‘. We need the step because the mainbody layout is auto detected based on content assigned so to make sure the position is displayed in all cases, we need to add the positions in all blocks of the mainbody.

    And here is what we get:

    Now create module and assign to the new added position, select to display in the page that uses the default layout

    DONE!


    1. Add_position
    nilgunce Friend
    #557207

    Thanks Saguaros G8
    I have new module position now.
    some little problems occured.
    1) Our new module position is out of the range as you can on atatched screenshot. Margin top is too long also.
    2) My header and footer also went wen out of the range after these arrangements.
    How can I them?
    Thank you your current and future effective and kind assistance.
    Nilgunce

    Saguaros Moderator
    #557287

    Hi Nilgunce,

    I realize that you’re turning off ‘Responsive Mode’, in my above code you change:


    <div class="t3-content col-xs-12 col-md-12 col-md-push-12"">
    <jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="T3Xhtml" />
    </div>

    To:


    <div class="t3-content">
    <jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="T3Xhtml" />
    </div>

    There is also some padding set for this module and the main content block, you can remove this padding by adding following css rule into: /templates/uber/css/custom.css (create this file if it doesn’t exist)


    .home .container.t3-mainbody {
    padding-top: 0px;
    }

    .home .t3-mainbody .t3-module.test {
    padding-top: 0;
    }

    You can change above value to suit your need.

    Regards

    Saguaros

    nilgunce Friend
    #557329

    Hi Saguaros;
    Solved. many thanks.
    But my footer content problem still stands.
    Besides some drop down menu problem has occured ( I have a thread about this topic)
    I need some more assistance
    Nilgün

    Saguaros Moderator
    #557339

    Hi Nilgün,

    Try to temporarily remove above changes and see whether this problem persists or not. It will help to figure out the issue root of issue.

    You can also PM me FTP account of site you’re working on and send me screenshot of how footer content should be, I will check it further.

    Best,
    Saguaros

    nilgunce Friend
    #557450

    Thank You Saguaros;
    1)I change my mind about using secondary menu items on submenu items for now. . Alternatively I will use side menu on product pages. So sub menu drop down problem is solved for now. So there is need to temporarily remove our last settings.
    2) Screenshot is attached. I have alignment problems as you can see.
    3) My acymaling module is disappeared ehen ı published the acm footer module.

    I am sending you the ftp details.

    Many thanks for you kind attention.

    nilgunce


    1. saguaros
Viewing 15 posts - 1 through 15 (of 21 total)

This topic contains 21 replies, has 3 voices, and was last updated by  Saguaros 9 years, 11 months ago.

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