T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. tincup
  2. General Discussion
  3. Friday, 26 June 2015
  4.  Subscribe via email
Hi,
I added a new module in 'spotlight-2' but the title of the module is not displayed even if set to "Show". I read that I have to put the style "xhtml" but do not know where in mainbody.php.
This is my mainbody.php:

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

/**
* 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');
}


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

The code you gave us is the layout code, it's for block calling, not module position define. You can refer to the documentation: http://www.t3-framework.org/documentation/bs3-layout-system#add-position

Regards.
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
Hi,
This is the content of the file spotlight-2.php. I do not know where else to find the position of the module. The template is bs3_blank

defined('_JEXEC') or die;
?>

<?php if ($this->checkSpotlight('spotlight-2', 'position-5, position-6, position-7, position-8')) : ?>
<!-- SPOTLIGHT 2 -->
<div class="container t3-sl t3-sl-2">
<?php $this->spotlight('spotlight-2', 'position-5, position-6, position-7, position-8') ?>
</div>
<!-- //SPOTLIGHT 2 -->
<?php endif ?>
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 again,

Could you please pm me your site url, admin account and FTP info, I will check and help you enable the module title in your pages.

Regards.
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
I found the problem, an error in the CSS file. The value of "display" was "none" and the "color" value was equal to that of the "background-color". :(

Thanks for your help.
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
You're welcome.
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
[SOLVED]

Hello I had the same problem, but I noticed that the <jdoc:include type="modules" name="<?php $this->_p($vars['xxxxxx']) ?>" style="T3Xhtml" /> does not load the module title, if I use my own custom style it does. The issue seems to be with the code
if ($module->showtitle != 0) 


So to solve this for all T3 modules that do not show the title ( that use the style="T3Xhtml" )
1 - Open file \plugins\system\t3\base-bs3\html\modules.php
2 - Copy the whole of the
function modChrome_T3Xhtml($module, &$params, &$attribs)
including the curly brackets
3 - Open or create /templates/t3_bs3_blank/html/modules.php or /templates/t3_blank/html/modules.php
4 - Paste the
function modChrome_T3Xhtml
onto it
5 - change
if ($module->showtitle != 0) 
to
if ($module->showtitle)
and save
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
Great tutorial @Sarah Eagle.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
  • Page :
  • 1


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