Developer forum

Forum » CMS - Standard features » Add all paragraph item types to page item type

Add all paragraph item types to page item type

jorien Kip
Reply

Hello,

I am wondering if there is a way to allow all paragraph item types to a page item type without declaring all the names within the ChildRule, using code first item types. Instead of ChildRule("ExampleParagraph") and listing all the names of the items.

    [Item("Example")]
    [Icon(Dynamicweb.Core.UI.Icons.KnownIcon.ThLarge)]
    [AreaRule,
      ModuleAttachmentRule(true),
      StructureRule(StructureContextType.Pages),
      ParentRule(ParentRestrictionRule.ParentType.RootOfWebsite, ParentRestrictionRule.ParentType.RegularPage), 
ChildRule("ExampleParagraph")
      ]
    [PageDefaultView(Dynamicweb.Content.Items.Metadata.PageDefaultView.Paragraph)]
    [Category("Pages")]
    public class ExamplePage: ItemEntry
    {


Replies

 
Nicolai Pedersen
Reply

Hi Jorien

That is currently not possible. Also not using the UI... 

Sorry about the inconvenience

BR Nicolai

 

You must be logged in to post in the forum