Category parent-child relationships and asset publisher settings

Category parent-child relationships and asset publisher settings

Issue

  • When the following procedure is followed, the contents displayed will be different for each user.

Procedure:

1. Add a custom field to "User" with the following settings
入力フィールド
フィールド名: region
2. From the custom field permission settings created in step 1, grant "View" permission to "User"
3. Global Site Category Settings > Go to Categories and add a vocabulary named "region"
Add a category to "region" with the following hierarchical structure
APAC
|-JP
|-AU

4. Add a new site (test site) and add a widget page
5. Add web content with the following settings

Web content A: Metadata: "region":APAC
Web content B: Metadata: "region":AU

6. Add users with the following settings

user1:
メンバーシップ: test site
region (カスタムフィールド): APAC

user2:
メンバーシップ: test site
region (カスタムフィールド): JP

7. Add asset publisher to page
8. Change the asset publisher settings as follows

データ取得方法: 動的
ソース: データのエントリタイプ: Webコンテンツ
カスタムユーザー属性: region

9. Log in as user1 and user2 and view the page where the asset publisher is configured

Results:

For user1:
both web contents are displayed.

For user2:
Web content is not displayed.

Environment

  • DXP 7.0+

solution

  • This behavior is the expected behavior.
  • user1 can display web content with parent and child categories because the custom field has the same value as the parent category.
  • user2 has the child category "JP" in the custom field, but there is no web content with the category "JP" set.Therefore, content is not displayed.
  • This behavior is related to the property "asset.categories.search.hierarchical".
  • The default setting is "true", which means that the category parent-child relationship is enabled.
  • If you set "asset.categories.search.hierarchical=false", the parent-child category relationship will be disabled.
    In this case, only content with categories set in custom fields will be displayed on the Asset Publisher.
Was this article helpful?
0 out of 0 found this helpful