Add Link next to Login Link

phrog

Joined: 2006-01-20
Posts: 11
Posted: Sun, 2006-01-22 13:52

In Gallery 2 how can I add a link back to my home page and place it left of the Login link on the main gallery page.What is the file that needs to be edited and at what line.

TIA

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Mon, 2006-01-23 01:05

if you are using the Matrix theme, gallery2/themes/matrix/templates/theme.tpl add your link around line 36.

 
davepgusa

Joined: 2006-01-23
Posts: 1
Posted: Mon, 2006-01-23 02:49

I'm using version v1.5-RC2. Where can I do this in that version?
And what would be the code?
Thanks!

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Mon, 2006-01-23 04:35

davepgusa: upgrade to the newest version of Gallery 1 and post in the Gallery 1 forums, or search the files in your gallery folder for the string you want to put your link near.

 
phrog

Joined: 2006-01-20
Posts: 11
Posted: Mon, 2006-01-23 14:25

I am using the Matrix theme. Can you show me where I have included lines above and below line 36. Thanks for your help.

* Some module views (eg slideshow) want the full screen. So for those, we
* don't draw a header, footer, navbar, etc. Those views are responsible for
* drawing everything.
*}
{if $theme.useFullScreen}
{include file="gallery:`$theme.moduleTemplate`" l10Domain=$theme.moduleL10Domain}
{else}
<div id="gsHeader">
<img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
</div>

<div id="gsNavBar" class="gcBorder1">
<div class="gbSystemLinks">
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
</div>

<div class="gbBreadCrumb">
{g->block type="core.BreadCrumb"}
</div>
</div>

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Mon, 2006-01-23 15:09

Just play around with it some :) My guess would be it would need to be the first thing inside of the gbSystemLinks div, but see where works for you.