{exp:tag:tag_name} inside {exp:tag:gallery_entries}
Posted: 20 April 2008 03:09 PM   [ Ignore ]
Member
RankRankRank
Total Posts:  76
Joined  2007-10-16

I am trying to use the exp:tag:tag_name variable to display the active tags as the table heading inside my exp:tag:gallery_entries loop.

When I do this I get a long string in the field:  M00o93H7pQ09L8X1t49cHY01Z5j4TT91fGfr (when it should read Sailfish)

Is this possible?  Why is it outputting the string above?

Thanks!  And I love the module!

Profile
 
 
Posted: 21 April 2008 06:13 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Hi rmeder,

I’m assuming you’re using Tag Module 2.1.1?
Can you paste an example of what one of your sample URL’s looks like? smile

 Signature 
Profile
 
 
Posted: 21 April 2008 07:50 AM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  76
Joined  2007-10-16

yes, using 2.1.1

http://domain.com/members/photos/category_tagged/tag/sailfish

Profile
 
 
Posted: 21 April 2008 07:59 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Thanks…

What does your template look like? smile

 Signature 
Profile
 
 
Posted: 21 April 2008 08:06 AM   [ Ignore ]   [ # 4 ]
Member
RankRankRank
Total Posts:  76
Joined  2007-10-16

sorry… I was going to paste it in the last post, but I was trying to figure out what the heck I had done to it!  grin

I believe now that I added the tag:cloud function to the bottom of it, the tag:tag_name function is now pulling the cloud?

here’s the current code:

{exp:tag:gallery_entries gallery="{gallery_name}" orderby="date" sort="desc" columns="3" rows="8" inclusive="yes" websafe_separator="+"}
<div class="entry">
<
table class="tableBorder" cellpadding="6" cellspacing="1" border="0" width="100%">
<
tr>
<
th colspan="4">{exp:tag:tag_name}</th>
</
tr>

{entries}

{row_start}
<tr>{/row_start}

{row}
<td class="thumbs"><div class="hoverbox">
<
a href="{id_path=photos/image}"><img src="{thumb_url}"  class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}" /><img class="preview" src="{medium_url}" {if thumb_width thumb_height}width="210" height="150"{if:else}width="150" height="210"{/if} title="{title}" /></a></div>
<
div class="photo_title">{title}</div>
</
td>
{/row}

{row_blank}
<td class="thumbs">&nbsp;</td>{/row_blank}

{row_end}
</tr>{/row_end}

{
/entries}

</table>

{paginate}
<div class="paginate">
<
span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
</div>
{/paginate}
<div class="photo_tags">
<
br />
{exp:tag:cloud gallery="gallery_name" category="{category}" exclude="{category}" groups="10" start="6" step="2" limit="40"}
{if segment_3 
!= 'tag'}<a href="{path='photos/category_tagged/{segment_3}/tag'}{websafe_tag}" title="{tag_name}" style="font-size:{step}px;">{tag}</a>{if:else}<a href="{path='photos/category_tagged/tag'}{websafe_tag}" title="{tag_name}" style="font-size:{step}px;">{tag}</a>{/if}
{
/exp:tag:cloud}
</div> <!-- END photo_tags -->
{/exp:tag:gallery_entries}

Profile
 
 
Posted: 21 April 2008 08:08 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

hehe LOL

Place the {exp:tag:tag_name} OUTSIDE of any/all Tag Loops, and that should do it wink

 Signature 
Profile
 
 
Posted: 21 April 2008 08:14 AM   [ Ignore ]   [ # 6 ]
Member
RankRankRank
Total Posts:  76
Joined  2007-10-16

you know… it’s funny. Once I posted that code in here I could clearly see that I could just move the tag:gallery_entries call under the tag:tag_name call and all would be well.  And of course it fixed it!  Thanks!!

Profile
 
 
Posted: 21 April 2008 08:15 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

You’re very welcome wink

 Signature 
Profile