Expand my Community achievements bar.

SOLVED

How can we display default value in content if we don't have value in Profile by using profile. Attribute name?

Avatar

Community Advisor

we are planning to use this attribute in AEM content to display vallue dynamically  "${profile.preferredCurrency}");. 

 

How can display this value more gracefully like if there is no value in this ttaribute I would like to show default value from content. 

 

Any sugesstions/ideas how to handle that.

 

Thank You

Uma

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Maybe before directly showing value in content just write one if condition which checks if that particular profile script is returning empty value? If yes then show.default content if not then change default content.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Maybe before directly showing value in content just write one if condition which checks if that particular profile script is returning empty value? If yes then show.default content if not then change default content.