TinyPortal

Development => Support => Topic started by: estecb on October 03, 2010, 06:29:42 PM

Title: How to disable blocks only in single articles view.
Post by: estecb on October 03, 2010, 06:29:42 PM
Hi, I know it is possible by doing something like this, somewhere in index.template.php


if (!isset($context['TPortal']['show_single_page']))
{
TPortal_sidebar('left');

         // TinyPortal integrated bars
          if($context['TPortal']['rightbar']){
              TPortal_rightbar();
          }
}


Then it won't show both panels in the single article view.
But i'm just not sure... it feels like unnecessary code to me...

Is there a better way to do this?

thanks
Title: Re: How to disable blocks only in single articles view.
Post by: IchBin on October 03, 2010, 07:10:44 PM
We put in the post form some information that needs to be provided in order for us to answer support questions. That information is also in our Posting Guidelines (http://www.tinyportal.net/index.php?topic=581). If you could let us know, we could probably figure out your problem.
Title: Re: How to disable blocks only in single articles view.
Post by: estecb on October 03, 2010, 07:19:16 PM
SMF version: 1.11
TP version: 0.9.8
Theme name and version: Default.