-
AuthorPosts
-
nilgunce Friend
nilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
November 29, 2014 at 6:24 pm #203158Hi;
I need an module position for my default layout. How can I set up that?
Awaiting urgent reply.
Thank you in advance.
Nilgünce
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
November 30, 2014 at 12:44 pm #557044Hi there,
Please check templatesubertpls and modify which profile you are using to inject your customize code.Thank you,
Viet Vunilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 1, 2014 at 4:34 am #557118Thanks 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.
nilguncejooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 1, 2014 at 5:15 am #557124Hi 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 Vunilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 1, 2014 at 5:57 am #557130I need to install hem blog under sub menu block.
nilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 1, 2014 at 6:09 am #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.com – http://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?
nilguncejooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 1, 2014 at 6:23 am #557134Hi 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 Vunilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 1, 2014 at 6:35 am #557137All 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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
December 1, 2014 at 7:02 am #557140Hi 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 sitehttps://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 VuSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 1, 2014 at 8:35 am #557162Hi 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!
nilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 1, 2014 at 1:39 pm #557207Thanks 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.
NilgunceSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 2, 2014 at 2:04 am #557287Hi 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 Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 2, 2014 at 6:53 am #557329Hi 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ünSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 2, 2014 at 8:04 am #557339Hi 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,
Saguarosnilgunce Friendnilgunce
- Join date:
- February 2014
- Posts:
- 170
- Downloads:
- 14
- Uploads:
- 30
- Thanks:
- 27
- Thanked:
- 1 times in 1 posts
December 3, 2014 at 12:05 am #557450Thank 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
AuthorPostsThis 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
Jump to forum