Versions Compared

Key

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

...

Info

It is possible to check if objects related to the portal have the recommended structure by using the link url_check_mode exposed on the tab URLs of the plugin PACKAGED_Portals.

1/ Install on existing projects

...

To have correct permissions on portals we also recommend to update pkgroletemplate instances.
If you can afford to reset your permissions from the nar, don’t forget to call the update (admin) endpoint given by PACKAGED_Security.
A touch on the users may also be needed to ensure that users, roles and roles role templates are correctly synchronized.

...

Note

If you have modified pkgsecugroup instances previously retrieved by an update call, be carefullcareful, you can overwrite existing instances

...

For all your library structures, which are containing assets that you want to use in portals, you will need to update them by adding a new prop called portals, the same way it’s present on the asset structure (tags too).

Info

All asset libraries created from wedia-config will be prepared to work with the portals, and will have a portals prop with the needed tags.

1.4/ Front app home widgets

...

To benefit from this feature, you have to update your vueapphomewidget structure, retrieve the new structure called homewidgetelttype and it’s its instances (from the nar), and update your current vueapphomewidgettype instances. vueapphomewiget received new props and a significant number of faces (facet/ “facettes”). More details here : https://crossmedia.atlassian.net/wiki/spaces/WD/pages/3299180556/Portals+feature+explained#Home-widgets

...

If you are updating your app to the version 2024.4 and you don’t want to benefit from or use the new feature, here are the steps to follow :

...

You can see on the cursor definition above that the query param’s value is quite large. It is actually containing all the default activated constraints. The key of this implementation is to make sure that the same constraint keys are used on filter’s definition and on cursor’s query param.

Constraint The constraint filter’s component(s) have also been updated to allow new UI (selected values on dropdown label, checkbox inline filter)

...

4.1.2/ Example of configuration

This filters filter configuration can be edited, to add or remove some filters. The configuration system follows principles that are used on the entire front app. Here you can find an example of a possible customization

...

By default, portals feature comes with filters on the portal’s detail view. These filters are allowing user allow users to filter displayed assets. The filter config used and displayed here , is the same one which that is used on the new univers universe creation.

It means that you can modify it, but the next created universe will be created by default with the updated filters config.

file File path : starter-kit\dam\explore\filters\default-cursor-config\default-resource-config.json

...

4.4/ Permissions

You can edit the portal’s feature permissions from wedia-config under the “Global permissions” menu.
For each role template, you will edit it’s its Global permissions” permissions, here you'll find the settings that are set by default.

...

This selection will control the value of the property visibility and the portal isntance instance will be updated accordingly (See the https://crossmedia.atlassian.net/wiki/spaces/WD/pages/3299180556/Portals+feature+explained#Visibility for more details).

...

When a fulltext search is made, if the portals featureis activated and if results are found, a new section will be displayed on the top of the assets results. This section will contain portals based on the performed search

A configuration option for the displayed portals is available. By configuring a cursor dedicated to the portals displayed in the DAM, you can either filter based on a specific property to meet a particular need or deliberately ensure that no portal instances are retrieved, thereby preventing the portals' result section from being displayed in the DAM.

Config Configuration file: starter-kit\portals\cursors\portals-dam-explore.json
Example of config, to put on the cursor, to hide portals results on the dam

Code Block
"staticQuery": {
  "id": { 
    "eq": 0
  } 
}

4.7/ Portal’s

...

section configurations

Portal’s sections are configurable through files under src\wedia-portal-apps-configs\starter-kit\portals\sections\templates[]

By default (for now) we are delivering two section types: assets & editorial

For each of these section types you will have a configuration file where you can find multiple configuration points

...

.

The type assets is for the sections that can be populated with media and editorial is for sections that can only contain text. See the following functional documentation for more details about portal organization https://crossmedia.atlassian.net/wiki/spaces/WD/pages/3253272588/2.+Create+and+Organize+a+Portal#Add-sections.

For each of these section types, you will have a configuration file where you can find multiple configuration points

Code Block
languagejson
{
  "enabled": true, // Activate or Deactivate the section on the menu inside the portal edition
  "type": "editorial", // Type of section : editorial/assets
  "component": "CwLpContentTextSection", // Default component that will be used to display section content
  "name": { // Configuration of the default section names in their languages
    "": "Text",
    "fr": "Texte",
    "de": "Text"
  },
  "iconClasses": ["fa-text"] // Icon used in the portal edition screen next to the section type label
}

We do not recommend to edit the type and the component.
Please note that the default component depends on multiple child components. Therefore, if you need to configure a specific component, ensure that you first review the component architecture and adhere to it.