Re: How to detect page type
[email protected] ("Alberto Simões") Tue, 23 Jan 2007 18:51:34 +0000
| Newsgroups | perl.kwiki |
|---|---|
| Message-ID | <[email protected]> |
On 1/22/07, Ingy dot Net <[email protected]> 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 =3D=3D 'edit' %] > > I think that should work... It works, thanks. --=20 Alberto Sim=F5es