link back to the custom page

emorockchris

Joined: 2005-09-27
Posts: 4
Posted: Mon, 2006-06-12 16:12

I want Gallery to link back to the custom page I created rather than linking back to main.php... Is that possible? The reason is I created a custom page, here: http://www.emorockchris.com/esoteric/gallery2/index.htm and I want all the other pages to link back to it and not main.php

AttachmentSize
problem.jpg24.36 KB
 
lvthunder

Joined: 2003-09-12
Posts: 804
Posted: Wed, 2006-06-21 19:36

The only way I know how to do this is to edit theme.tpl and add this after the body tag.

{if $theme.item.parentId == 0}
{g->theme include="front.tpl"}
{else}

Then at the end add this.
{/if}

Then you need to move index.html into the templates folder and change the name to front.tpl and remove the heading stuff from the html.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2006-06-22 00:31

http://codex.gallery2.org/index.php/Gallery2:How_Do_I_Remove_the_Root_Album_Link

you might look at that and see if it has clues for how to change the root album link instead of remove it.