Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to detect page type

2 views
Skip to first unread message

hash...@gmail.com

unread,
Jan 22, 2007, 5:04:19 PM1/22/07
to kw...@perl.org
Hello

I asked this on IRC but as nobody answered, here is the question, so I
can go sleep and check the answer tomorrow.

I am designing a theme. I have a template for the main page. I would
like to make the template larger if the page is in "edit" mode. Is
there any variable I can query to check the "page type" at run time?

Thanks
Cheers
ambs aka Albie

--
Alberto Simões

Ingy dot Net

unread,
Jan 22, 2007, 6:35:35 PM1/22/07
to Alberto Simões, kw...@perl.org
On 22/01/07 22:04 +0000, Alberto Sim?es wrote:
> Hello
>
> I asked this on IRC but as nobody answered, here is the question, so I
> can go sleep and check the answer tomorrow.
>
> I am designing a theme. I have a template for the main page. I would
> like to make the template larger if the page is in "edit" mode. Is
> there any variable I can query to check the "page type" at run time?

Try:

[% IF hub.action == 'edit' %]

I think that should work...

hash...@gmail.com

unread,
Jan 23, 2007, 1:51:34 PM1/23/07
to Ingy dot Net, kw...@perl.org
On 1/22/07, Ingy dot Net <in...@ingy.net> wrote:
> On 22/01/07 22:04 +0000, Alberto Sim?es wrote:
> > Hello
> >
> > I asked this on IRC but as nobody answered, here is the question, so I
> > can go sleep and check the answer tomorrow.
> >
> > I am designing a theme. I have a template for the main page. I would
> > like to make the template larger if the page is in "edit" mode. Is
> > there any variable I can query to check the "page type" at run time?
>
> Try:
>
> [% IF hub.action == 'edit' %]
>
> I think that should work...

It works, thanks.
--
Alberto Simões

0 new messages