Huge problem with Tags and Related Galleries! >.<
Posted: 10 September 2008 12:05 PM   [ Ignore ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

I’m using the latest Tags 2.1.2 and have marked entries with the tag “lee hyori” and also associated images with the same tags in my gallery.

*Note: Since the inception of this post, there has been some new developments. They are detailed at the bottom of this post.

-

Problem?
The weblog entries are not displaying them at all. Frankly, the post that IS displaying something has no tags associated with it at all. I’ve tried reproducing the effect in concurrent posts with no tags, but the results are not being duplicated. It seems it only appears on the first post of the weblog (from what I’ve noticed anyway). I’ve tested this on two different dev boxes at two different locations with clean installs of ExpressionEngine 1.6.4 and the latest Tags module.

I’ve produced some replies over at this thread that has highlighted my first attempt.

-

List of Issues
* Tagged images are not being displayed in posts with the same tag.
* First weblog entries are producing images in the posts, however, they are not displaying ALL the results with the same tag. In my second install of EE, one image of 2 are only being displayed. In the first install on the first server, 2 of the 3 were being displayed. It seems there is a disregard for tags, and they are appearing no matter what, but only in an isolated circumstance (first post of the weblog).

-

My Code & Settings
The tag I have used is “lee hyori”. Below is also the code of associated templates in relation to the problem.

product/index (Weblog Entry Page):

{embed="site_embeds/header"}
{embed
="site_embeds/masthead"}

<div id="content">
{exp:weblog:entries weblog="products" limit="1"}
<h1>{title}</h1>
{body}
{
/exp:weblog:entries}

{embed
="site_embeds/related_gallery" url_title="{segment_2}"} (I've tried embedding with & without the "url_title" parameter; no differences.)
</div>

{embed="site_embeds/footer"}

site_embeds/related_gallery (Linked from Weblog Entry Page):

{exp:tag:related_gallery_entries gallery="product_gallery" limit="20"}
{entries}
{row}
  
<img src="{thumb_url}" class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}" />
WTF
{title}
{
/row}
{
/entries}
{
/exp:tag:related_gallery_entries}

-

Details about attached images
post.jpg
The outputted page viewed in browser of the weblog entry. Note that it is displaying an image tagged with “lee hyori” and the included term “WTF” from the embedded “related_gallery” template on an entry in which no tag was associated with. And even when a tag is associated, it changes nothing and seems to have no affect on the output of the related gallery images.

post_edit.jpg
A look at the “Tag” tab in the Edit page for the weblog entry that is displaying the related gallery image. Note the title, which shows this edit page applies to the page just detailed above.

img_tag.jpg & img_tag2.jpg
A look at the image edit pages through Gallery Extended. As circled in red, the tag “lee hyori” exists in both pictures, but only one seems to be outputted to an entry.

-

New update
I’ve mingled a bit more, and was able to get ALL images to display rather than the previous 1 of 2 associated with a tag on a weblog entry. The problem? It is displaying in EVERY weblog entry, regardless what tag they have or do not have at all..

-
-

Thanks again,
Danny

Image Attachments
post.jpgpost_edit.jpgimg_tag.jpgimg_tag2.jpg
Profile
 
 
Posted: 11 September 2008 07:00 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Was this working before the Tag 2.1.2 upgrade?

You’ll probably need to grab the Entry ID instead:

<div id="content">
{exp:weblog:entries weblog="products" limit="1"}
<h1>{title}</h1>
{body}

{embed
="site_embeds/related_gallery" entry_id="{entry_id}"}

{
/exp:weblog:entries}
</div>

{exp:tag:related_gallery_entries entry_id="{embed:entry_id}" gallery="product_gallery" limit="20"}
{entries}
{row}
  
<img src="{thumb_url}" class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}" />
WTF
{title}
{
/row}
{
/entries}
{
/exp:tag:related_gallery_entries}

 Signature 
Profile
 
 
Posted: 14 September 2008 04:34 PM   [ Ignore ]   [ # 2 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

I’m getting no results form this. Any other ideas?

Profile
 
 
Posted: 14 September 2008 04:45 PM   [ Ignore ]   [ # 3 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

I’ve spent 4-5 days on this and can’t figure it out for the life of me. Can someone from Solspace just check if this feature is broken or not with latest EE and Tags? I just can’t seem to get this to play nicely with one another - at all and just wish I can. It’s such a fundamental thing I need for my workflow.. Any help is greatly appreciated, as this was primarily one of the factors of purchasing Tags.

Keep me posted! Oh, and if it does work, please - PLEASE provide me some workable code. =P

BTW: Incase I wasn’t clear in the previous posts or failed to mention it - all images do not have an associated weblog ID - I was under the impression that they will work without the need of an associated ID and solely based on the linking of having the same “tag”. So any weblog entry would display associated images as long as it had the same tag - and not because the image had the same ID in addition to the same tag. Hope that clears it up a bit.

Cheers,
D.

Profile
 
 
Posted: 15 September 2008 08:59 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18
mr_dimsum - 14 September 2008 04:45 PM

I was under the impression that they will work without the need of an associated ID and solely based on the linking of having the same “tag”. So any weblog entry would display associated images as long as it had the same tag - and not because the image had the same ID in addition to the same tag.

That is the situation. However, the Entry ID still needs to be passed to the Embed because otherwise the Tag:Related_Gallery_Entries does not know the Tags contained by the Weblog Entry in question. smile

Are you sure your code looks exactly like this (with the {/exp:weblog:entries} loop end AFTER the embed?):

<div id="content">
{exp:weblog:entries weblog="products" limit="1"}
<h1>{title}</h1>
{body}

{embed
="site_embeds/related_gallery" entry_id="{entry_id}"}

{
/exp:weblog:entries}
</div>

Can I otherwise get CP access to have a look? smile

 Signature 
Profile
 
 
Posted: 15 September 2008 09:48 AM   [ Ignore ]   [ # 5 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Pie Man,

I will have another go at this tomorrow - and if I get no luck with it again, I’ll put it on a live server so you mingle with it and give it a shot. Thanks for the huge help bro. Much appreciated. Will reply back after another attempt - but to my knowledge, it’s exactly as written as you had posted above. Will re-confirm things tomorrow as it’s quite late tonight and have to head to dose soon enough. >.<

Profile
 
 
Posted: 15 September 2008 11:23 AM   [ Ignore ]   [ # 6 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

So I’ve decided to take a shot at this before I sleep and have gotten nowhere.. >.<

Here’s my code:

Template: product/index

<div id="content">
{exp:weblog:entries weblog="products_weblog" status="Open|Available" limit="1"}
  
<img src="http://localhost/phpthumb/phpthumb.php?src={exp:parse_url total="100" parts="path"}{image}{/exp:parse_url}&w;=200&h;=200&zc;=1&q;=100&aoe;=1" align="left" />
  <
h1>{title}</h1>

  <
p>HOLD {hold} SHINE {shine} WEIGHT {weight}</p>
  
{description}

  {embed
="site_embeds/product_gallery" entry_id="{entry_id}"}
{
/exp:weblog:entries}
</div>


Template: site_embeds/product_gallery

{exp
:tag:related_gallery_entries entry_id="{embed:entry_id}" gallery="products_gallery" limit="20"}
{entries}
{row}
  
<img src="{thumb_url}" class="border" width="{thumb_width}" height="{thumb_height}" border="0" title="{title}" />
WTF
{title}
{
/row}
{
/entries}
{
/exp:tag:related_gallery_entries}

According to my Image Galleries preferences, my “Photo Gallery Short Name” short name is products_gallery.
According to the Tag module, I have 2 entries and 1 gallery entry tagged with ‘moving’ for a total of 3 total results.

This is not producing anything in the weblog entry.

Profile
 
 
Posted: 17 September 2008 03:55 AM   [ Ignore ]   [ # 7 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Any help greatly appreciated. Pie Man, is the following working templates working under 1.6.4 for you? Would be greatly appreciated.

Thanks bro,
Danny

Profile
 
 
Posted: 17 September 2008 08:22 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Danny,

I’m sure I had this going before… but I’ll give this another whirl… smile

 Signature 
Profile
 
 
Posted: 17 September 2008 12:20 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Hmmm… you’re right, this thing is broken.  shut eye

When did you notice this issue first happened? 2.1.2? smile

 Signature 
Profile
 
 
Posted: 17 September 2008 02:50 PM   [ Ignore ]   [ # 10 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Pie Man,

Glad you checked it out! To be honest - I was never able to pair the two together since I first made my purchase some months back - not sure if this is the first version of Tags I’ve ever used - but the potential of it helping my workflow is just too hard to pass!

Thanks for looking into it! Would love if you guys have a solution to it sooner rather than later (we all know that 2.0 thing..).

Thanks bro,
Danny

Profile
 
 
Posted: 17 September 2008 02:57 PM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

I should also mention that I particially steered you in the wrong direction too LOL

You need to specify this parameter:

related_id=""

It still doesn’t work though rasberry

 Signature 
Profile
 
 
Posted: 17 September 2008 04:14 PM   [ Ignore ]   [ # 12 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

LOL! That’s f*cking hilarious man! No worries - since both don’t work anyway! =P But please do keep me updated! Be great if you guys can take a bit of time and figure out what happened that broke the functionality. I’ll certainly be using it for all my material, as well as a ton of your other modules as well of course.

BTW, Pie Man - I made a thread suggestion for something in the Related Entires forum - check it out!

Danny

Profile
 
 
Posted: 18 September 2008 06:41 AM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Scratch that… I’m an idiot… turns out I was thinking about Gallery Extended… related_id="” is NOT for use in Tag:Related_Gallery_Entries smile

 Signature 
Profile
 
 
Posted: 17 October 2008 10:16 AM   [ Ignore ]   [ # 14 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

This is now fixed with the new version of Tag 2.5 smile
http://www.solspace.com/forums/viewthread/661/

 Signature 
Profile