Tag Newbie Question
Posted: 22 May 2008 10:17 AM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

This is probably a terribly easy question, but how do I set up the tag module to work with the photo gallery module? I only want to tag pictures. I don’t want to have any tags associated with any weblogs. I set up a custom field for my gallery called “Tags”, then I went to create a preference for this in the Tag module, but it would only let me select a weblog, not a gallery.

I had a look through the documentation and couldn’t find an answer.

Thanks for the help!

-Adam

Profile
 
 
Posted: 22 May 2008 10:26 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2691
Joined  2006-10-18

Adam, if you have a look in your Photo Gallery module, you’ll see there’s automatically a Tag field provided smile

 Signature 
Profile
 
 
Posted: 22 May 2008 10:32 AM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

Oh, man. I knew it was an easy question. smile

Profile
 
 
Posted: 22 May 2008 10:37 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2691
Joined  2006-10-18

Easy questions are the best!  LOL rasberry

 Signature 
Profile
 
 
Posted: 22 May 2008 03:27 PM   [ Ignore ]   [ # 4 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

Alright, time for another easy question!

This is the code I am using:

{exp:tag:gallery_entries gallery="gallery"} {title} {/exp:tag:gallery_entries}

I get results that are relevant to the tag present in the URL, but it will only ever return 1 entry, even if I have more entries tagged with the tag in the URL.

I have a feeling there is something very basic I am missing.

Thank you for your help!

Adam

Profile
 
 
Posted: 23 May 2008 06:32 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2691
Joined  2006-10-18

Adam,

Do all of your gallery entries belong to the Gallery called “gallery”?

 Signature 
Profile
 
 
Posted: 23 May 2008 07:39 AM   [ Ignore ]   [ # 6 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

Yes. I thought that might have been a bad call. Am I confusing the system?

Profile
 
 
Posted: 23 May 2008 07:54 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2691
Joined  2006-10-18
adamrobo - 23 May 2008 07:39 AM

Yes. I thought that might have been a bad call. Am I confusing the system?

No no… it’s a required parameter anyway smile

I know it’s poorly documented, but the Tag:Gallery Entries loop follows the same structure as the EE Photo Gallery module....
Try starting with this code below, and refer to the Photo Gallery documentation for further control:

{exp:tag:gallery_entries gallery="gallery" inclusive="yes" orderby="random"}
  {entries}
   {row}
  
<img src="{thumb_url}" height="51px" width="79px" alt="{title}"><br />{caption}
   {
/row}
  {
/entries}
{
/exp:tag:gallery_entries}

I’ll update the Docs so this is more clear smile

 Signature 
Profile
 
 
Posted: 23 May 2008 08:01 AM   [ Ignore ]   [ # 8 ]
Newbie
Avatar
Rank
Total Posts:  9
Joined  2008-02-16

Great. Thanks!

Profile