Adding a content type to a structure node
You can add a content type to a structure node.
In the example, the content type "Board book" is added to the structure node "Planes".
This is how it works
Open d.velop composer.
Select the desired content type from Available elements > Content types.
Here the content type: "Board book".
Drag and drop the content type onto the element relationship you want to configure at Element Relationships > Design.
Here the element: "Planes".
Define the Storage location for documents.
Select the Site collection.
Here: "sales".
Select the Web page.
Here root web page:"/".
Select the Library.
Here selection from the manufacturer of the plane: "${item.ecsPlaneVendor}"
Save your entries with Apply.
Define the Link fields.
Here:
Field (parent): "PlaneID"
Field (child): "ecsPlanelDOWSTEXT"; a managed property that must be created beforehand.
Assign a name in the Display name field.
Save the structure.
The board book is now in two different libraries as a content type. The path is calculated dynamically with placeholders.
Warning
If, due to the configuration, a parent item is simultaneously part of a list or library and part of a structure via the content type, the subelements of both structure nodes are displayed in both main nodes respectively.
Please also refer to the following chapters:
How are placeholders used for the storage location of documents?
Creating a view for a content type
If you use a content type as a structure node, you should also define a view.
In a view, you can specify the properties of the content to be displayed. Additionally, you can store ascending or descending sorting for a property.
Creating a view - This is how it works
Open d.velop composer.
Select the desired content type under Element relationships .
Here: "Board book".
Create a new view with the + button.
(under Definition view in registers)
Assign a name in the View name field.
Add the name of the of the managed property in the field Managed property field in the line of the corresponding internal field name.
The managed property must have been previously created in the SharePoint Online search schema.
Please also refer to the following chapter"Prerequisites for sorting in the center".
Specify the columns to be displayed:
Check the Display box if you want the column to be displayed.
Set the default sorting of the columns:
Move the mouse to the column you want to move (grayed out area).
The arrow for moving appears.
Click with the left mouse button on the Internal field name of the corresponding field.
Press and hold the mouse button.
Drag the field to the desired position with the left mouse button pressed.
Release the mouse button.
Proceed accordingly for all other columns.
Set ascending or descending sorting for a column:
Click once on the column (grayed out area) for ascending sort.
The ascending arrow appears.
Click again on the column for descending sorting.
The descending arrow appears.
Click the column again to cancel the sorting.
Save your entries with Apply.
Save the structure.
Warning
In Definition of display in tabs, please specify a mapping for the columns used in Display format items (selection of display format for list items or documents) as well as for the columns used for the link.
Defining a storage location for documents of a content type
You can use any text in combination with placeholders to define the Storage location for documents for a content type.
Available elements:
item.: The current list item. This is to be followed by the internal name of the SharePoint column.
site.url: The server-relative (without https://...) URL to the site collection.
site.id: Returns the ID of the site collection in the form of a GUID.
site.absoluteurl: The absolute URL to the site collection.
list.url: The server-relative URL to the list.
list.id: The ID of the list.
web.url: The siterelative URL to the website.
web.id: The ID of the web.
web.absoluteurl: The absolute URL to the web.
server.url: The server URL (current domain).
location.href: The current URL of the clients.
tenant.id: The ID of the tenant.
user.id: The ID of the current user.
Please note that only text fields are supported.
Set the display name for the Storage location for documents.
Example placeholder storage location for documents
${site.absoluteurl}//Kundendokumente/${item.glCustomerNumber}
$: Use a dollar sign to specify the placeholder. Only the elements listed above can be used as placeholders.
{ }: Inside the curly brackets, reference the current list item, for example, with "item.". This is to be followed by the internal name of the SharePoint column.
Other examples:
Example for server.url
https://mytenant.sharepoint.com/
Example for site.absoluteurl
https://mytenant.sharepoint.com/sites/siteA
Example for site.url (relative URL)
/sites/siteA
Example for web.absoluteurl
https://mytenant.sharepoint.com/sites/siteA/webA
Example for web.url (relative URL)
/sites/siteA/webA