How to create a custom page?

Joel Theodore

Joined: 2006-09-17
Posts: 40
Posted: Sun, 2009-05-10 16:57

Trying to work out how to create a custom page within Gallery2? Any suggestions would be appreciated.

Right now to create a custom front page i'm using:
{if $theme.item.parentId == 0}
{g->theme include="gallery.tpl"}
{else}
{g->theme include="album.tpl"}
{/if}

I have thought of two ways to do this...

First of all someone knows a way to create a complete new page within Gallery.
Secondly using the above method I create a new album where the item ID is 44, and have an if statement where if someone goes to itemID 44 it will include "custompage.tpl". It's a bit of a messy workaround but if it achieves the end result perfect.

I'm all open to suggestions.

Regards,

Joel

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-05-10 17:45

http://codex.gallery2.org/Gallery2:Modules:htmlblock
http://codex.gallery2.org/Gallery2:Modules:html
http://codex.gallery2.org/Gallery2:Modules:minicms

Quote:
It's a bit of a messy workaround but if it achieves the end result perfect.

if it works it works

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team