掲示板

Asset Publisher filtering using Multiple Custom Attributes and Vocabulary

thumbnail
6年前 に mohit mehral によって更新されました。

Asset Publisher filtering using Multiple Custom Attributes and Vocabulary

New Member 投稿: 17 参加年月日: 17/03/16 最新の投稿
Hi All,

I can provide multiple "user custom attributes" in asset publisher section.
Please find screenshot "MultipleCustomUserAttributes.png".

I am trying to filter webcontent listing in asset publisher on basis of custom user attributes using Vocabulary and categories.
But the effect which I would like to have is "OR" effect.

Current it is having "AND" effect.

I.e. it checks all users which exactly match with vocabulary entered.
I.e. we need to provide both values in webcontent. If we does not provide one of the vocabulary values, it is not shown in asset publisher.


Please screenshot with details of my setup.

"MultipleCustomUserAttributes.png" --> Setting in my asset publisher for "user custom attributes".

Listing of vocabulary in global site "VocubalaryInGlobalSite.png".

Details of Vocabulary "business" created under global site:-
businessVocubalarySettings.png -> settings of business vocabulary.
CategoriesUnderbusinessVocubalary.png --> categories created under this vocabulary.

Details of Vocabulary "unit" created under global site:-
unitVocubalarySettings.png -> settings of unit vocabulary.
CategoriesUnderunitVocubalary.png --> categories created under this vocabulary.


User3 with custom attributes (User3CustomFields.png):-
Custom attribute "business" has value "CDSL"
Custom attribute "unit" has value "CDSL-IT"

User4 with custom attributes (User4CustomFields.png):-
Custom attribute "business" has value "CBSL"
Custom attribute "unit" has value "CBSL-IT"


Custom Field Settings for User:-
UserCustomeFieldbusiness.png --> setting for custom field business for user.
UserCustomeFieldbusinessPermissions.png --> permission for custom field business for user.
UserCustomeFieldunit.png --> setting for custom field unit for user.
UserCustomeFieldunitPermissions.png --> permission for custom field unit for user.


Webcontent added by Admin:-
Webcontent-business-CBSL.png
--> Webcontent with only business vocabulary value as "CBSL"
Webcontent-business-CDSL.png
--> Webcontent with only business vocabulary value as "CDSL"
Webcontent-business-CBSL-unit-CBSL-IT.png
--> Webcontent with business vocabulary value as "CBSL" and unit vocabulary value as "CBSL-IT"
Webcontent-business-CDSL-unit-CDSL-IT.png
--> Webcontent with business vocabulary value as "CDSL" and unit vocabulary value as "CDSL-IT"
Webcontent-unit-CBSL-IT.png
--> Webcontent with only unit vocabulary value as "CBSL-IT"
Webcontent-unit-CDSL-IT.png
--> Webcontent with only unit vocabulary value as "CDSL-IT"



Asset publisher with earlier mentioned settings and after adding above mentioned webcontent for user3 "user3AssetPublisher.png".
Only webcontent matching both vocabulary is shown.
Asset publisher with earlier mentioned settings and after adding above mentioned webcontent for user3 "user4AssetPublisher.png".
Only webcontent matching both vocabulary is shown.


We observed that webcontent is shown in asset publisher when values of both vocabulary match exactly.
It does not consider if we provide just one value of vocabulary for webcontent.


Out requirement is even if one of the value of vocabulary matches, we would like to show webcontent in asset publisher.

How we can achieve the same.
thumbnail
6年前 に mohit mehral によって更新されました。

RE: Asset Publisher filtering using Multiple Custom Attributes and Vocabula

New Member 投稿: 17 参加年月日: 17/03/16 最新の投稿
Hi All,

Please let me know if any additional info is required.
We are using liferay dxp.
thumbnail
6年前 に mohit mehral によって更新されました。

RE: Asset Publisher filtering using Multiple Custom Attributes and Vocabula

New Member 投稿: 17 参加年月日: 17/03/16 最新の投稿
Is it possible to have OR effect inside category comparison.

Requesting liferay team if they can look at this.

Regards,
Mohit