Developer forum

Forum » CMS - Standard features » Limit items allowed in dwcontent area

Limit items allowed in dwcontent area

Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

If we have a page that has eg. two colums, it would be really helpful if it was possible to limit/define what paragraph items are allowed in each of the colums (dwcontent area).

Is this possible somehow? If not, consider this a feature request :)

 

/Hans

 

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Hans,

You should be able to do that by specifying items-allowed in the settings attribute on the dwcontent element:

<div id="main" class="dwcontent" data-settings="items-allowed:MyItemType,MyOtherItemType"></div>

...or when using PageViewModel...

@Model.Placeholder("main", "Main content", "items-allowed:MyItemType,MyOtherItemType");

Best regards,
Morten

Votes for this answer: 1
 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Thats perfect Morten :)

Thank you very mutch 👍🏻

 

You must be logged in to post in the forum