Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

GetTaggedItems

Vote:
 
When I fetch the tag cloud, I get a bunch of tags and the TagCloudItems indicate that there are a number of items in each tag.
In my tags page which is supposed to list the tagged items for a certain tag, I get no results at all.
This is the code I use
----------------
Tagcloud:
tags.TagCloud = TagHandler.Instance.GetTagCloud(20);
Listing:
string something = "Episerver";
Tag tag = new Tag(something); //<- A watch on tag shows that tag has 4 items after this row
int totalItems;
var items = TagHandler.Instance.GetTaggedItems(tag, null, null, null, EntityStatus.Approved, page, pageSize, out totalItems);

 

//totalItems is 0 here, and number of items is 0.
#56212
Jan 12, 2012 10:03
Vote:
 
#56216
Jan 12, 2012 10:39
Vote:
 

Suddenly in debug mode it works. Caching?

#56218
Jan 12, 2012 13:34
Vote:
 

Could be caching. Because I struggled with Relate attributes also - adding attribute from the code and then immediately retrieving that value. Cache was the issue of the exception. Havn't dig into your case..

#56744
Feb 07, 2012 12:32
Vote:
 
#56745
Feb 07, 2012 12:41
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.