Displaying tags on Gallery Single Entry Page
Posted: 13 February 2008 11:10 AM   [ Ignore ]
Jr. Member
Avatar
RankRank
Total Posts:  38
Joined  2005-04-30

Sorry for making a second thread, but I ran into another problem. raspberry

I’m tagging most of my gallery entries, and am now trying to display the tags assigned to one entry on that image’s page. However, it doesn’t seem to be working, the output is totally empty. Here is the code I’m using:

<li>Filed under:
{exp:tag:tags entry_id="1344" type="gallery" backspace="2" orderby="clicks" sort="desc" limit="10"}
<a href="{path=’tags/tag’}{websafe_tag}" title="{tag_name}">{tag}</a>,
{/exp:tag:tags}

I have hard-coded the entry ID in there just to test it - I get the same results by putting in {segment_3} or by leaving the entry_id parameter out completely. This code is used on the single entry page for this gallery image, between the {exp:gallery:entries}{/exp:gallery:entries} tags. I’m displaying a few other stats (file name, width, height, views) right above and below the Tags code, and they all display fine. Any idea what I’m doing wrong?

PS: I double checked in the Tags control panel, and both tags assigned to this entry are indeed listed with the right count. When I click on them to view the entries under each, they both show up empty though - but I had previously assumed this was intentional, I figured it only showed weblog entries there, and not gallery entries?

Profile
 
 
Posted: 13 February 2008 11:36 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

nothingless,

The Gallery Entries should show up in the Tag CP, but this is a currently known issue.
This bug only checks for ID’s and leaves out the Gallery entries… however, you might also notice that the bug also shares Weblog Entry ID’s and Gallery Entry ID’s, so if you have an unrelated Weblog Entry ID of “20”, and a related Gallery Entry ID of “20”, it will probably pluck the Weblog Entry with ID of “20” in that list.

I will test the Tag:Tags issue for you though smile

Thank you for your patience wink

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 14 February 2008 08:53 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

nothingless,

I’ve given this a whirl… this obviously sounds strange, but try changing:

type="gallery"

to

type="weblog"

It’s obviously a bug, but it will display the Tags for now smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 14 February 2008 08:58 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

EDIT

I apologize, it only shows the tags for the weblog entry of the SAME ID as the Gallery Entry…. it’s that same bug again…

nothingless,

I’ll take note of this bug, and we should look after it shortly… thank you smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 22 February 2008 07:30 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

This issue has been corrected in the latest version of Tag.

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 23 February 2008 07:25 AM   [ Ignore ]   [ # 5 ]
Jr. Member
Avatar
RankRank
Total Posts:  38
Joined  2005-04-30

Thank you - it now works perfectly for me! In case it’ll help anyone else, here’s the exact code I’m using:

<li>Filed under:
{exp:tag:tags type="gallery" gallery="scans" backspace="2" limit="10" websafe_separator="_"}
<a href="{path="scans/view"}{websafe_tag}" title="{tag}">{tag}</a>,
{/exp:tag:tags}</li>

Example of it in action

:D

Profile