Open Documentation Menu

Creating subfolders when adding an item to a structure node

You can have subfolders created automatically as soon as a new document is saved in center in a suitable structure element.

In this example, the website collection-independent storage example is extended to include the automatic creation of a subfolder. The "Delivery notes" item from the "sales" site collection is added to the "Planes" structure node.

This is how it works 

  1. Open d.velop composer.

  2. Open the structure to be edited for editing. The page Configure structure opens.

  3. Under Element relationships, select the desired structure node.

    Here: "Planes" in the site collection/web page "d.velop AIR".

  4. Select the item from another site collection and corresponding web page.

    Here: "Delivery notes" from the site collection/web page "sales".

  5. Drag and drop the item onto the desired structure node.

    Here: "Delivery notes" from Available elements > Libraries to " Planes" under Element relationships > Design.

  6. Define the Relation fields.

    Here: Field (Parent): "PlaneID"; Field (Child): "PlaneID".

  7. Select the function Create subfolder on upload.

  8. Select the target folder for the documents.

    Important: To create the folders please use the Field (parent) (see point 6).

    Here: "$item.ecsPlaneID". This causes the planeID to be selected as the name for the subfolder.

  9. Assign a Display name.

  10. Save the structure.

Note

Please note that only text boxes are supported.

Note

Please note that nested folders cannot be created. The folder where the new subfolder will be created must already exist.