deactivation of sidebar plugin
Posted: Sat Jan 07, 2006 1:27 pm
is it possible to deactivate/ disable the sidebar for e. g. a static page or for the iframe plugin (WRAPURL). Many thanks for any help.
User and developer community
https://board.s9y.org/
Code: Select all
{if $staticpage_title != 'specialpage'}
...
here the code for showing sidebarvia Smarty
...
{/if}
Code: Select all
{if $is_raw_mode != true}
<div id="serendipity_banner">
<h1><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle}</a></h1>
<h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
<div id="navigation">
<ul>
<li class="nav1"><a href="{$serendipityBaseURL}" title="Weblog" accesskey="1">Blog</a></li>
<li class="nav2"><a href="{$serendipityBaseURL}index.php?/pages/about.html" title="About" accesskey="2">About</a></li>
<li class="nav3"><a href="{$serendipityBaseURL}gall/index.php" title="Bilder" accesskey="3"><b>Bilder</B></a></li>
<li class="nav4"><a href="{$serendipityBaseURL}pages/contactform.html" title="Kontakt" accesskey="4"><b>Kontakt</b></a></li>
</ul>
</div>
<br style="clear: both" />
</div>
<table id="mainpane">
<tr>
{if $staticpage_title != "specialpage"}
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
{/if}
<td id="content" valign="top">{$CONTENT}</td>
{if $staticpage_title != "specialpage"}
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
{/if}
</tr>
</table>
{/if}yes - I tried It with different names and last time with .../pages/specialpage.htmlgarvinhicking wrote:You did alter your static page and rename the one you want to hide to "specialpage", right?
Regards,
Garvin
Code: Select all
{if $staticpage_title != 'specialpage' or if if $staticpage_title != 'specialpage2'}
...
here the code for showing sidebarvia Smarty
...
{/if}Code: Select all
{if $staticpage_title != 'specialpage' AND $staticpage_title != 'specialpage2' AND $staticpage_title != 'specialpage3'}
...
here the code for showing sidebarvia Smarty
...
{/if}
Code: Select all
Parse error: parse error, unexpected T_ECHO in /data/members/paid/p/a/paloma-parra.com/htdocs/www/paloma/plugins/serendipity_event_wrapurl/serendipity_event_wrapurl.php on line 132