Display tags on Home page

Gilmore1
Gilmore1's picture

Joined: 2013-03-26
Posts: 5
Posted: Tue, 2013-03-26 01:54

Hello,
I have added Tags to both my photo.html.php and album.html.php using shinta's mod found in the forum. galleryproject . org / node / 96250

I can get the Tags to display on the Album and Photo pages just fine, but I can't seem to figure out how to get it to work on the Home page. Can anyone be of assistance on this?

Thanks!

Gilmore

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-03-26 02:18

By home page you mean the root album?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-03-26 02:23
 
Gilmore1
Gilmore1's picture

Joined: 2013-03-26
Posts: 5
Posted: Tue, 2013-03-26 20:47

Yes I mean the root album (Home page). But not in a sidebar. I wish to display them in the footer or under the album. Using the above listed modification allows me to place the Tags anywhere I want, except on the Root album or Home page. Is there a way to do this?

Tags: apple, banana, lemon, orange

Thanks!

Gilmore

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2013-03-27 00:08

All blocks that are in the sidebar can be shown in other parts of the page. http://galleryproject.org/node/99949#comment-363998

Enable the tagsinalbum module.
Remove it from the sidebar if you don't want it to show on the sidebar. (admin -> appearance -> manage sidebar)
add this bit of code on page.html.php or any other view file you want it to show:
<?= tagsinalbum_block::get("tagsinalbum", $theme) ?>
Your on your own for styling the block. It has a ID of g-tags-in-album-block so it should be able to styled the way you want.

I'll get you atarted witht he css:

#g-tags-in-album-block {
    margin: auto;
    width: 50%;
}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Gilmore1
Gilmore1's picture

Joined: 2013-03-26
Posts: 5
Posted: Thu, 2013-03-28 21:40

Well I guess the Tags work better when you add some! DOH!

Thanks!

Gilmore