Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page Type control?


Reply


2 Posts   1201 Views

Avatar
NickJacobs

Community Member, 144 Posts

18 October 2008 at 10:16am

Hi, is there any way of testing for a particular page type? For example, I only want to include certain code on gallery pages .... is there any way of doing something like this:

<% if PageType = GalleryPage %>
....
do something
....
<% end_if %>

Avatar
ajshort

Community Member, 244 Posts

18 October 2008 at 10:38am

Hi galilee,

you can just use something like this in your template:

<% if ClassName = GalleryPage %>