Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
liferay pagefragment, default = value of another field
So , i am relatively new to Liferay ,so please excuse my wording sometimes when it comes to liferay specific termonology.
My general Idea is to create a srcset , which can either be filled by three different url or one for all
I created a pagefragment , and now i am facing an issue:
I defined multiple fileds in my configuration.json , which on their own work as intended.
The issue is , is there a way , to set the default value of two of my there string fileds to the value of my third.
Other than using JS to replace the content of empty (or placeholder) attributes by the default one, I don't think that there's an option.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™