Open orchardbot opened 10 years ago
edikaufmann commented:
also, after some further testing: it seems that I can't use the slug to confine the cloud to a certain ContentItem. As the slug I use the 'ContentItem' name.
BuzzKeith commented:
also, after some further testing: it seems that I can't use the slug to confine the cloud to a certain ContentItem. As the slug I use the 'ContentItem' name.
This is due to line 59 in TagCloudService.cs:
.Select(x => x.Id)
which I reckon should read :
.Select(x => x.ContentItemRecord.Id)
Glyn commented:
Has there been any progress fixing the bucket count bug?
If not, please point me in the right direction and I'll patch my site code as a make-do until an official release which fixes it is out.
Glyn commented:
Here's where the naughty code lives, in TagCount.cs (Modules\Orchard.Tags) which explains why tags always get assigned to bucket one.
namespace Orchard.Tags.Models {
public class TagCount {
public TagCount() {
Bucket = 1;
}
public string TagName { get; set; }
public int Count { get; set; }
public int Bucket { get; set; }
}
}
@sebastienros commented:
I think it's fixed, we use it on weblogs.asp.net without any issue. Have you tried the 1.8.x branch ?
Glyn commented:
I'm using the Orchard.Web.1.8.zip (March 29th) from the download page.
Is there a more recent build somewhere with a fully functional tag cloud? If there is, would you post a link to it please?
@sebastienros commented:
You can use this link: http://teamcity.codebetter.com/viewLog.html?buildId=122608&tab=artifacts&buildTypeId=bt630#!hua92z7h
Glyn commented:
Thanks for the link.
Now I just need to get my head around using Orchard as a project rather than just as a product. Time for more coffee me thinks... :-)
@j3ffb commented:
I submitted a pull request for the Slug issue https://orchard.codeplex.com/SourceControl/network/forks/j3ffb/royalvetcollege/contribution/7858
@agriffard commented:
Is it fixed now that the pull request has been integrated in 1.8.x? https://orchard.codeplex.com/workitem/21124
edikaufmann created: https://orchard.codeplex.com/workitem/20610
Wiki Link: [discussion:541393] this happened after migrating from 1.7.1/2 to 1.8
My 'Tag Cloud Widget' defines 5 buckets. However, the classes are NOT set accordingly! I.e. all classes are set to one (1):