$theme.pageType ?

cient

Joined: 2006-06-01
Posts: 26
Posted: Wed, 2006-06-21 10:53

hello,

if you look in theme.tpl you'll see that the main content is chosen by this part:
{if $theme.pageType == 'album'}
{g->theme include="album.tpl"}
{elseif $theme.pageType == 'photo'}
{g->theme include="photo.tpl"}
{elseif $theme.pageType == 'admin'}
{g->theme include="admin.tpl"}
{elseif $theme.pageType == 'module'}
{g->theme include="module.tpl"}
{elseif $theme.pageType == 'progressbar'}
{g->theme include="progressbar.tpl"}
{/if}

I want to add a new content type via a new tpl file, like album.tpl, etc. My problem is now, how to implement a new page type - where i have to make my changes?

Thanks

 
ecto01

Joined: 2006-06-22
Posts: 2
Posted: Thu, 2006-06-29 22:33

i've also been trying to figure this out.

anyone?

 
korpdata

Joined: 2006-05-25
Posts: 43
Posted: Fri, 2006-06-30 20:29

Take a look at the "aboutpage" module, it does exactly wah you need.

http://codex.gallery2.org/index.php/Gallery2:User_Contributions
http://gallery.menalto.com/node/48554

[ KORPDATA ] Innovando Soluciones Empresariales

 
cient

Joined: 2006-06-01
Posts: 26
Posted: Wed, 2006-07-26 11:01

hi korpdata,

i cant find something like "theme page type" in this module...

My question is, who controls the $theme.pageType variable in the gallery system?

 
samxsam

Joined: 2008-07-24
Posts: 4
Posted: Fri, 2008-07-25 05:53

I have the same question!!! haha it this question being answered?