-
AuthorPosts
-
daigalean Friend
daigalean
- Join date:
- December 2013
- Posts:
- 68
- Downloads:
- 38
- Uploads:
- 6
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
January 28, 2014 at 12:42 pm #194194Ok, guys I think I am used to haveing the positions layed out for me with other templates.
On the Magazine layout. I see the position component and above that message both say Auto. There is a list in the module positons of dozens of names How do I go about using say position 1 above component?
I am trying to add a new position
I tried to read over the docs but it just lost me.
D…
Any help is really appreciate.
Ps. I think the main problem is that I am Dyslexic so massive amounts of text is a problem for me.
D.
daigalean Frienddaigalean
- Join date:
- December 2013
- Posts:
- 68
- Downloads:
- 38
- Uploads:
- 6
- Thanks:
- 9
- Thanked:
- 4 times in 1 posts
January 28, 2014 at 1:18 pm #520222Ok, I am reading over the t3 adding a block and what is in the documentation and what is in the files here are totally different. Now I see why I am not understanding why the documentation is not so easy to follow.
I am following this http://t3-framework.org/documentation/bs3-layout-system#add-positionThis is in the /httpdocs/templates/purity_iii/tpls/blocks directory using the mainbody.php file as a clone.
Example: This is what they say to use.
<jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" />
what you guys have here.
<?php
/**
* Mainbody 3 columns, content in center: sidebar1 - content - sidebar2
*/// positions configuration
$sidebar1 = 'sidebar-1';
$sidebar2 = 'sidebar-2';$sidebar1 = $this->countModules($sidebar1) ? $sidebar1 : false;
$sidebar2 = $this->countModules($sidebar2) ? $sidebar2 : false;// detect layout
if ($sidebar1 && $sidebar2) {
$this->loadBlock('mainbody/two-sidebar', array('sidebar1' => $sidebar1, 'sidebar2' => $sidebar2));
} elseif ($sidebar1) {
$this->loadBlock('mainbody/one-sidebar-left', array('sidebar' => $sidebar1));
} elseif ($sidebar2) {
$this->loadBlock('mainbody/one-sidebar-right', array('sidebar' => $sidebar2));
} else {
$this->loadBlock('mainbody/no-sidebar');
}1 user says Thank You to daigalean for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 29, 2014 at 8:05 am #520336If you wish to add new position into JA Purity III template, you need to know about T3 framework plugin. You can refer to these tutorials and videos to get familiar with our T3 framework.
To add new position to Purity III – Magazine layout, you can try steps below:
Open templates/purity_iii/tpls/blocks/mainbody/one-sidebar-right.php file,
Change
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" />
<?php endif ?>
<jdoc:include type="component" />To
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" />
<?php endif ?>
<?php if ($this->countModules('your_module_position_name')): ?>
<jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" style="raw" />
<?php endif ?>
<jdoc:include type="component" />Hope that helps.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
January 29, 2014 at 4:24 pm #520389There’s also the JAT3 USER GUIDE/DOCUMENTATION
😎
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 3 voices, and was last updated by TomC 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Ok, Postions and how it works?
Viewing 4 posts - 1 through 4 (of 4 total)