TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 394
  • Total: 394

How to disable blocks only in single articles view.

Started by estecb, October 03, 2010, 06:29:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

estecb

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

IchBin

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. If you could let us know, we could probably figure out your problem.

estecb

SMF version: 1.11
TP version: 0.9.8
Theme name and version: Default.

This website is proudly hosted on Crocweb Cloud Website Hosting.