singapore: the smallest big galery
home » forum » Mods » Name & Link for each gallery to be used for a menu.

You are not logged in.

  • Index
  •  » Mods
  •  » Name & Link for each gallery to be used for a menu.

#1 2008-01-09 10:56:24

imp_squared
Member

Name & Link for each gallery to be used for a menu.

I would like start off by typing "Singapore is awesome!! I totally enjoyed working with Singapore. I hope its wiki site comes back up soon!!

My Question:

I wanted to add a menu to singapore. This menu will be on every page (Gallery pages, Album pages, or Image pages).

This menu I would like to list (Name and the URL Link) of each gallery in Singapore.

Currently I have the 2 links that I manually added to the top of the menu. Then on the "Gallery page" only, I can list the gallery links. If I go to the "Image or Album pages" the links for the galleries disappear and I'm left with only the manually added links I added for the top of the menu.

(Here is the current code I'm using)

Code:

<ul id="menu">
        <li><a href="[i]URL TO HOMEPAGE[/i]">FSI Home</a></li>
        <li><a href="[i]URL TO MAIN SINGAPORE INDEX PAGE[/i]">FSI Gallery Home</a></li>
        <?php for($index = $sg->gallery->startat; $index < $sg->gallery->galleryCountSelected()+$sg->gallery->startat; $index++): ?>
        <li><?php echo $sg->gallery->galleries[$index]->nameLink(); ?></li>
        <?php endfor; ?>
      </ul><

Offline

 

#2 2008-01-10 00:50:44

DC
Administrator

Re: Name & Link for each gallery to be used for a menu.

Well I wrote a dropdown script that will list the main galleries found and autolink them, you can try that if you like its self contained and does not rely on the sgal classes so this way it can be used on a standard php page and then reads the dirs within the sgal gal.

You can see info on my script here.
http://www.sgal.org/forum/viewtopic.php?id=3050

DC


To code or not to code that is the question?

Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php

Offline

 

#3 2008-01-11 09:19:48

imp_squared
Member

Re: Name & Link for each gallery to be used for a menu.

Thanks DC

Totally what I needed to get started!!!!!!

I could kiss you!!

Props..

Last edited by imp_squared (2008-01-11 09:25:10)

Offline

 

#4 2008-01-11 16:30:58

DC
Administrator

Re: Name & Link for each gallery to be used for a menu.

Great glad that gets ya started as far as wiki you can get to a version of that via our lab site, it will link you to one of the archived versions.

http://sgal-lab.primaveraphoto.com/
Go there click throgh scroll to the bottom and select Visit Wiki also check out the mods and template tester ...

DC


To code or not to code that is the question?

Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php

Offline

 
  • Index
  •  » Mods
  •  » Name & Link for each gallery to be used for a menu.