Additional contents in mainpage only?

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2007-11-17 15:40

http://www.girlondesktop.com/main.php

I want to add some link after albums in homepage (main.php), but don't want them show in child albums.

Please tell me how to do this!

Thank you very much!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-17 15:45

album.tpl of the theme you are uisng:

{if empty($theme.parents)}
root album only
{else}
other pages
{/if}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2007-11-17 15:55

I want to display like this:

(View attacment)

Thank you for your reading!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-17 16:31

Add it at the end of album.tpl
You might have to add a table or a <div> to position it the way you want but that it up to you.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2007-11-17 16:33

Ok, i done!

Thank you very much!