Hello,
Is there any way to show parent album name other then the breadcrumb thing ?
I have it like for each user
User > Subalbums > Subalbums
User2 > Subalbums > Subalbums
And i need to show the User album name on the subalbum pages but seperately then the bedcrumbs on top...
Any way?
Comments
If all you need is the name, calling:
`<?php $aGalleyIndex = getParentAlbums();<br />
echo $aGalleyIndex[0]; ?>`
should work. If you need it to be a link to the gallery index, try using:
`" title="Gallery Index"><?=getGalleryTitle();?>`
I have 10 main albums called User1, User2, blah blah . and i have 2 level sub albums in all of the main albums.
What i want to do is Show main album name on Top of the subalbums.
Like if i am on
User1> Trips > Someplace
I want to show User1 on top of the page.
printGalleryTitle() prints the gallery title, i don't need that.
Thanks in advance if anyone can help
`<?php $aGalleyIndex = getParentAlbums();<br />
echo $aGalleyIndex[1]->getTitle(); ?>`
Let me know if that works.
Fatal error: Call to a member function on a non-object in
themes\binary\album.php on line 32
Line 31 and 32 are
<?php $aGalleyIndex = getParentAlbums();
echo $aGalleyIndex[1]->getTitle(); ?>
$aGalleyIndex = getParentAlbums();
echo $aGalleyIndex[0]->getTitle(); ?>
ok that is working when i am in User > album or USer > Album > Album
But when i am just on user it gives the Fatal error: Call to a member function on a non-object in error
ANy fix for that ?
Or any way of just showing this code in the sub albums and not the main ?
Thanks a lot for your help so far elderz
<?php
if ( $aGalleyIndex = getParentAlbums()) {
echo $aGalleyIndex[0]->getTitle();
} else {
printAlbumTitle();
}
?>
It displays The main album title in any of it's subalbums or there subalbums.
If anyone can tell me what's happening there, that would be great too :P