Try our conversational search powered by Generative AI!

How to group by content to IList property in CMS

Vote:
 

Hi,

I have a requirement of grouping the content in IList propery in CMS. Below is my property example.

[Display(
Name = "General questions",
GroupName = SystemTabNames.Content,
Order = 130)]
[CultureSpecific]
public virtual IList<ContentReference> GeneralQuestions { get; set; }

So here, Editor can drag and drop all the content references but i need to have one more option of grouping content references with name.

It's kind of Visitor group format. But i dont want to use this as it's only text group format.

#201164
Feb 07, 2019 14:29
Vote:
 

Hi Suresh,

Couldn't you just create a block with a string property and the IList<ContentReference> (or ContentArea depending on needs)? It would represent a grouping of questions under a specific name.

If you called it QuestionsBlock, your property above could be updated:

[Display(
Name = "General questions",
GroupName = SystemTabNames.Content,
Order = 130)]
[CultureSpecific]
[AllowedTypes(typeof(QuestionsBlock))]
public virtual IList<ContentReference> GeneralQuestions { get; set; }
#201178
Feb 07, 2019 20:33
Vote:
 

Hi Jake,

Thanks for the update. I got idea to configure this case.

Thanks,

Suresh B

#201355
Feb 15, 2019 14:38
* 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.