What code is needed to show which pic is set to highlight in an album?

nonamer

Joined: 2007-03-28
Posts: 58
Posted: Fri, 2008-02-22 09:00

When viewing inside an album(album.tpl) what line of code will let me know which photo is currently set as the highlighted pic for that album. I want to add an outline to it or even text at the bottom of it saying "highlighted", but I'm just not sure how to call it. I've done several searches on this and I'm surprised no one has asked this question before.

thanks,
Jerry

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25967
Posted: Fri, 2008-02-22 19:09

I have answered this before. I searched for about 10 min and could not find the right keywords to find it. There is a way in the template to check and give some text. If you can't find it I will look again and perhaps find it after a beer or two.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nonamer

Joined: 2007-03-28
Posts: 58
Posted: Fri, 2008-02-22 19:33

I'd buy you that beer if I could. :) I did an advanced search and filtered them to your posts only but still could not find it. The advanced search will only let me look at the first page of 20 search results when there is actually over 300 postings found containing the words "highlighted" or "highlight"

I'm at a lost, but I'm glad there is an answer to this somewhere :D thanks Dave.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25967
Posted: Sat, 2008-02-23 16:58

I was wrong it was about hidden items not highlight items.

		  {if $user.isAdmin}
		  {if strpos($child.onLoadHandlers, '|Hidden|') !== false} this item is hidden! {/if}
		  {/if}

I think it would be a bunch more work for a highlight.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nonamer

Joined: 2007-03-28
Posts: 58
Posted: Sat, 2008-02-23 17:57

darn. well thanks Dave.