[solved] is static page

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

[solved] is static page

Post by seraphyn »

Small question, I coudn't find it in the nice book from garvinkicking, too.
Norm way do disable a sidebar is:

Code: Select all

{if $is_single_entry !=true}
            <div id="sidebar_top">
                {if $rightSidebarElements > 0}
                {serendipity_printSidebar side="right"}
{/if}
What's the syntac for staticpage?
{if $is_staticpage !=true} does not work :(
Thanks for the time spending with me
Chris
Last edited by seraphyn on Fri Jun 10, 2011 10:10 am, edited 1 time in total.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: is static page

Post by yellowled »

seraphyn wrote:What's the syntac for staticpage?
You can test for $staticpage_pagetitle, but I'm not entirely sure whether this variable could be left empty and if the test would work properly if that's the case.

YL
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: is static page

Post by seraphyn »

Thanks yellowled,

I'll try that later this day.
Hope this works, to disable the sidebar on static pages from the theme side.
Chris
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: is static page

Post by Don Chambers »

yeah, I'm thinking {if $staticpage_pagetitle ==''} THIS IS NOT A STATIC PAGE {/if} too...
=Don=
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: [solved] is static page

Post by seraphyn »

Thanks,

it is:

Code: Select all

        {if $is_single_entry !=true  and $staticpage_pagetitle ==''}
            <div id="sidebar_top">
                {if $rightSidebarElements > 0}
                {serendipity_printSidebar side="right"}
          {/if}
Thanks

EDIT: Hatte falschen Code eingefügt, Sorry
Post Reply