We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Guest
  2. Motivator Hole-in-One Smile Seeker
  3. General Discussion
  4. Tuesday, 02 December 2014
  5.  Subscribe via email
I'v installed Purity III and then, check update T3 to: T3 v2.4.1
That's great.
Default magazine layout:
http://s8.postimg.org/cw9ms9i4l/image.png

Right now, I want to custom on magazine layout (eg)
Add two blocks: myblock1, myblock2 above mainbody.
http://s29.postimg.org/3zhhj70fr/image.png

I read documents on T3-Framework, but can't fix a problem. I hope I give you my step-by-step you will support me.

Step 1: Create two postions in TemplateDetail.xml file (Purity III - templates)
...
<position>myblock1</position>
<position>myblock2</position>
...
Step 2: Add new module position into one-sidebar-right.php file
...
<!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-md-9">

<!-- MY BLOCK -->
<div class="col-md-5">
<jdoc:include type="modules" name="myblock1" style="T3Xhtml" />
</div>
<div class="col-md-4">
<jdoc:include type="modules" name="myblock2" style="T3Xhtml" />
</div>
<!-- //MY BLOCK -->
....
....
Step 3: Add somes position for testing into myblock1, myblock2
Front-end: It's so good
Unfortunately
Back-end: myblock1, myblock2 doesn't show in magazine layout.

Please, give me some solutions. I want to manage theses blocks in back-end.

Thanks
Comment
There are no comments made yet.
Accepted Answer
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Aleks,

Please add the positions in all mainbody block (templates\purity_iii\tpls\blocks\mainbody), the same way you do with one-sidebar-right.php and the positions will be displayed in the magazine layout.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # Permalink
Accepted Answer Pending Moderation
0
Votes
Undo
hjhj Gardner Luna,

Very very great answer, I dont need to add into files in mainbody dir, some needed files, I fixed my problem.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
P/s: maybe, this "discussions feature" for editing a post is bug, I can't edit a post
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi, great to see it works and thanks for your report the forum issue, I will check and fix it as soon as possible.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hello...I have the same problem but I need to add a new blog below the blog "masthead"...what file I need to change and what code I need to put.
THANKSSSSSSSS I NEED YOUR HELP PLEASE
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Are you mentioning the layout: http://purity_iii.demo.joomlart.com/index.php/layout/new-layouts/blog, its great if you can draft the layout you want it to be so I can help you.

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hello, it's the same layout of this discussion, Magazine : http://purity_iii.demo.joomlart.com/index.php/layout/new-layouts/magazine, so for me :

I need to add a new module A between B and C (first image), so about the layout to add a new block like the second image.....
Is it right? so what file I need to change and what code I need to put?

Thx
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

I got your point, to do that, you have to add new block, define a poisition in the block then load the block in the magazine layout. Here is the details in each step.

Step 1: create new block by adding new block file: custom.php in the "templates\purity_iii\tpls\blocks" folder and define position in the block

<?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;
?>

<!-- custom -->
<div class="">
<jdoc:include type="modules" name="<?php $this->_p('position-1') ?>" style="JAxhtml" />
</div>
<!-- //custom -->
<?php endif ?>


Step 2: load the custom block in the magazine layout by opening the file: templates\purity_iii\tpls\magazine.php and add the code below just after the header block:

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


Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hello....Thanks for all, but...
I've create the custom.php and adding the the code <?php $this->loadBlock('custom') ?> to the file magazine.php like this :


<?php
/**
*------------------------------------------------------------------------------
* @package T3 Framework for Joomla!
*------------------------------------------------------------------------------
* @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @authors JoomlArt, JoomlaBamboo, (contribute to this project at github
* & Google group to become co-author)
* @Google group: https://groups.google.com/forum/#!forum/t3fw
* @Link: http://t3-framework.org
*------------------------------------------------------------------------------
*/

$responsive = $this->getParam('responsive', 1);
$resClass = "";
if ($responsive==0){
$resClass = "no-responsive";
}

defined('_JEXEC') or die;
?>

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

<head>
<jdoc:include type="head" />
<?php $this->loadBlock('head') ?>
<?php $this->addCss('layouts/magazine') ?>
</head>
<?php $this->loadBlock('custom') ?>

<body>

<div class="t3-wrapper magazine"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->


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

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

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


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

</div>


</body>
</html>



But NOTHING appears on layout, no blocks an nothing when I go to the page magazine....I have forget something?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
ALL IS OK FOR ME!
I VE JUST PUTING :
<?php $this->loadBlock('spotlight-1') ?>
below :
<?php $this->loadBlock('header') ?>
in
/templates/purity_iii/tpls/magazine.php

THX Gardner!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
I have an other problem, I need just this part (screenshot)

So, I put in Magazine Layout/Magazine Home :
"
Configuration for Featured articles

# Leading Articles
0
# Intro Articles
0
# Featured columns
0
# Featured links articles
0 "

But Featured links articles stay already

…..so can I DELETE Featured links articles in the code?
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.