Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

see See DFO 4.0.0 - 2 Modelling Asset Content Types.

Asset “Folders” property

Since version 4.0.2 the “Folders“ property contains a list of the following model

Code Block
public class DigizuiteFolder
{
    public int Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public int TreeNodeId { get; set; }
}

Where

  • Id - the same Id as in version 3

  • Name - the Name of the folder

  • TreeNodeId - Id that we use in version 4 (the same Id you can see in FoldersSelectionFactory)

So, it looks like

...

If you need a folder-property where you can chose the folders.

You can add the following property to your page:

Code Block
[Display(
    Name = "Folders",
    Description = "",
    GroupName = SystemTabNames.Content,
    Order = 40)]
[SelectMany(SelectionFactoryType = typeof(FoldersSelectionFactory))]
public virtual string Folders { get; set; }

And then you will be able to see a list of folders with checkboxes.

image-20240826-123341.pngImage Added

Group Access Level

In previous versions of API it used to return a “security“ item:

...

And in Digizuite.Optimizely connector, it used to go through this list and setup the ContentSecurityDescriptor for the each item.

However in the newest version of API, this “security“ item has been removed.

And we also removed the code for configuring ContentSecurityDescriptor from Digizuite.Optimizely.

Since version 4.0.2 you can set the access levels for groups in the configuration file.

For example, if you add the following parameter to digizuitesettings.json

Code Block
"SetGroupAccessLevel": {
  "Everyone": "Read"
}

It adds a “Read“ access level for the group “Everyone“.