Disable one of the views (General)

by Michael Ben-Nes ⌂ @, Israel, Sunday, March 08, 2009, 09:44 (5520 days ago) @ Alex

Thanks Alex,

I did something slightly different. Basically because I was not aware of your solution then.

in main tpl I changed:

{if $subtemplate}
{include file="$template/subtemplates/$subtemplate"}
{else}
{$content|default:""}
{/if}

To:

{if $subtemplate=="index_table.tpl.inc"}
{include file="$template/subtemplates/index.tpl.inc"}
{elseif $subtemplate}
{include file="$template/subtemplates/$subtemplate"}
{else}
{$content|default:""}
{/if}


Complete thread:

 RSS Feed of thread