Developer forum

Forum » Dynamicweb 10 » Cannot Create Swift Page In Navigation Folder

Cannot Create Swift Page In Navigation Folder

Joseph Vause
Reply

Hello,

Curious issue on Dynamic Web 10.7.2 where we cant seem add a Swift Page with the default Swift Navigation Folder (Page ID 88) no matter what restrictions are put on Swift_Page (we have it currently all items can be children + parents) but it never shows up in the add new page modal. (In fact none of our custom item types show up).

Is there a way of finding out what restriction is blocking the creation of the item type?


Replies

 
Brian Fredrick Ahlmann Boyles Dynamicweb Employee
Brian Fredrick Ahlmann Boyles
Reply

We'll answer and get back

 
Brian Fredrick Ahlmann Boyles Dynamicweb Employee
Brian Fredrick Ahlmann Boyles
Reply
This post has been marked as an answer

I'm not sure what the origin of the issue is, but I've discovered that it can be solved by editing the settings in the XML describing the Swift_Page item (/Files/System/Items/ItemType_Swift_Page.xml)

 

<rule name="Allowed children" type="Dynamicweb.Content.Items.Activation.ChildRestrictionRule, Dynamicweb" value="RegularPage" />
<rule name="Allowed parent types" type="Dynamicweb.Content.Items.Activation.ParentRestrictionRule, Dynamicweb" value="RootOfWebsite,RegularPage" />

 

Votes for this answer: 1
 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi both

This stems from this missing check is being set on the page item type:

Which in turn is not available on your solution due to regular pages are disabled:

Brians change effectlively change this directly in the XML.

The folder is a 'regular' page, hence item types cannot be created in folders if that is disabled.

We will change the labels and behavior of this so the "Allow under a regular page" will change to "Allow under a regular page or folder" and ensure that setting is always available on item type restrictions even though standard pages are disabled.

BR Nicolai

 

You must be logged in to post in the forum