Geta EpiCategories - Can't add categories

Jay
Jay
Vote:
 

Hi,

Just installed EpiCategories 1.2.9 on CMS 11.9.0< managed to get everything set up (I think) but when I try and add a category the only option I get is New from Template!

Anyone help me figure out where I have gone wrong?

Thanks

#218974
Mar 26, 2020 12:00
Vote:
 

Hello Jay

Have you defined a content type for the category like this? 

[ContentType]
public class BasicCategory : CategoryData
{
}

David

#218982
Mar 26, 2020 15:56
Jay - Mar 30, 2020 7:03
Hi,

Yep set it up exactly per the example in the readme on GitHub
Ravindra S. Rathore - Mar 30, 2020 7:06
Hi Jay,
is this still not working?
Jay - Mar 30, 2020 7:16
Hi,
Nope, everything was set up according to the readme but what I get is the screen shot I originally posted. I'm pretty sure there is something missing or because of how heavily engineered our site is there may be something overriding it. I think what I really need to figure out is the process behind how the option for a new category appears in the menu
Ravindra S. Rathore - Mar 30, 2020 7:25
Are you able to see the "BasicCategory" in the Content-Type inside admin?
Jay - Mar 30, 2020 7:29
Both the Basic and Extended categories I created are both there in the admin Content-Type, they are under Other
Vote:
 

Hi Jay,

Yes, you need to define the content type as David mentioned.

More info available here-

https://github.com/Geta/EpiCategories/blob/master/README.md

#219020
Mar 27, 2020 9:03
Vote:
 

Hey Jay,

Can you please try this on alloy project and if it works on the alloy then you can compare if something is missing?

#219137
Edited, Mar 30, 2020 7:38
Jay - Mar 30, 2020 8:25
Hi,
Tried it on the Alloy training site and still have the same problem, Categories doesn't appear in the Nav bar at the top and I have to add it as a gadget so that may be indicative of something fundamental missing or not configured correctly
Ravindra S. Rathore - Mar 30, 2020 8:28
Can you please provide your code snippet here(only EpiCategory related)?
Jay - Mar 30, 2020 8:55
namespace AlloyTraining.Models.Categories
{
public class CategoryData : StandardContentBase, IRoutable
{
[UIHint(UIHint.PreviewableText)]
[CultureSpecific]
public virtual string RouteSegment { get; set; }

[Display(Order = 20)]
[UIHint(UIHint.LongString)]
[CultureSpecific]
public virtual string Description { get; set; }

[Display(Order = 30)]
[CultureSpecific]
public virtual bool IsSelectable { get; set; }

public override void SetDefaultValues(ContentType contentType)
{
base.SetDefaultValues(contentType);
IsSelectable = true;
}
}
}

namespace AlloyTraining.Models.Categories
{
[ContentType]
public class BasicCategory : CategoryData
{
}

[ContentType(DisplayName = "Extended category")]
public class ExtendedCategory : BasicCategory
{
[CultureSpecific]
public virtual XhtmlString MainBody { get; set; }
}
}
David Knipe - Mar 30, 2020 9:24
Hi Jay

You can *delete* the CategoryData class. This is included with the GetaCategories package. I got confused with this documentation too.

David
Ravindra S. Rathore - Mar 30, 2020 9:32
Delete everything and just install the package and create this class only-
[ContentType]
public class BasicCategory : CategoryData
{
}
Jay - Mar 30, 2020 9:49
Thanks
Deleting CategoryData class did the trick, still doesn't show Categories in the Nav but I can live with that
Ravindra S. Rathore - Mar 30, 2020 9:54
great!!
Vote:
 

Deleting CategoryData class did the trick, still doesn't show Categories in the Nav but I can live with that

Not sure, but it's possible that resetting the views for your user could help:

Log in to the CMS -> click the little profile icon in the top right -> select "My Settings" -> go to the "Display Options" tab -> click "Reset Views"

#219690
Apr 01, 2020 18:12
Vote:
 

Thanks to David, we updated readme file for the package, so hopefully it will be more clear when installing and following getting started instructions.

#219691
Apr 01, 2020 18:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.