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
RE: Manage site hierarchy in asset publisher
My client is an organization in several countries. For each country there are differents organizations and brands.
All this is managed very well with Liferay using a hierarchy of sites.
All of these sites inherit from a single site template.
My client would like to distribute content on several sites at the same time while respecting this hierarchy.
The idea is therefore to use an asset publisher that would search on the current site, then the parent site and its parent... up to its country and finally the global site if it is a global communication.
For the creation of web content, it's simple, you just have to create it on the global site or the site of the country or the site of the organization... but then let's imagine that we have 300 sites, you have to configure the 300 asset publisher manually and the modified page of the site will be dissociated from the site template whereas we would have liked to configure only the asset publisher of the site template by checking a checkbox indicating that the search must be recursive on the parent sites.
I think it's not very complex to modify the asset publisher and it would be so convenient.
To do this, adding a simple boolean on the asset publisher jsp and then do a small recursive loop to search the current site and its parent sites in the service will do the job.
Hi Eric,
Thank you for the contribution!
I have created the following ticket in Jira: https://issues.liferay.com/browse/LPS-184578