Disable one of the views (General)
Hi,
I wish to disable one of the views (table), is it possible through the configuration?
Or I should just forcefully overwrite in the code one of the GET variables?
Thanks for the great forum.
Hi,
I wish to disable one of the views (table), is it possible through the configuration?
Or I should just forcefully overwrite in the code one of the GET variables?
Thanks for the great forum.
Hello
I wish to disable one of the views (table), is it possible through the configuration?
Or I should just forcefully overwrite in the code one of the GET variables?
In the version 1.x that was possible in the (advanced?) forum settings (so yes, it should be possible in the configuration). I can't believe that this is not possible in the 2.x branch.
Tschö, Auge
I wish to disable one of the views (table), is it possible through the configuration?
From version 2 on the "views" are just a template issue (both views use the same back-end). The easiest way to deactivate the table view would be removing the link to toggle between the views (templates/default/subtemplates/subnavigation_2.tpl.inc: search for {#table_view#}). Additional, you could modify includes/index.inc.php in order to prevent requests for the table view:
replace ...
if($user_view==1) $smarty->assign('subtemplate','index_table.tpl.inc'); else $smarty->assign('subtemplate','index.tpl.inc');
... by ...
$smarty->assign('subtemplate','index.tpl.inc');
Alex
Hi, Auge
Actually I couldn't find such option in the settings
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}