Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Please decorate the property with [Categories]
Like -
public class MyPageType : PageData, ICategorizableContent
{
[Categories]
public virtual IList<ContentReference> Categories { get; set; }
}
More info - https://github.com/Geta/EpiCategories
I added the [Categories] attribute and they still disappear after rebuilding the solution.
Also, I do not want to use the [Categories] attribute since I want to be able to drag categories to the property.
It says in the text that the [Categories] attribute is optional: "If you prefer to use the native content reference list editor for your categories you can skip the CategoriesAttribute:"
Also I can see in the database that the categories are still there: ["1b18f203-3a00-48f0-ae5a-8fcd814c763b","17ed2a34-2d6f-4344-a021-bce73170c3cd","14aab268-e36e-457d-a5ac-a9ee46dfb614"], but they only disappear from the edit mode property view and are also not avaliable in page model.
Can you please confirm on below questions-
I did not have MultipleActiveResultSets=true in the connectionstring and that was the problem. After looking in the epi error log where it said: "System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first." it was solved quickly.
I am using the Geta Categories in a page like this:
[CultureSpecific]
[Display(
Name = "Categories",
Description = "",
GroupName = TabNames.Category,
Order = 10)]
[AllowedTypes(typeof(Categories.Category))]
public virtual IList<ContentReference> Categories { get; set; }
When working locally:
I have dragged a category to the page property Categories and published the page.
When I rebuild the solution and look att the property Categories in edit mode, the category has disappeared.
I have also added:
<add key="GetaEpiCategories:ShowDefaultCategoryProperty" value="true" />
But the categories added disappear when rebuilding the solution.
Has anyone seen this behaviour before?
I am using Geta.EpiCategories 1.2.11
and EPiServer.CMS 11.14.0