RE: Manage site hierarchy in asset publisher

thumbnail
Eric D, modified 16 Days ago. Junior Member Posts: 59 Join Date: 3/25/16 Recent Posts

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.

 

thumbnail
Jamie Sammons, modified 2 Years ago. Expert Posts: 367 Join Date: 9/5/14 Recent Posts

Hi Eric,

Thank you for the contribution! 

I have created the following ticket in Jira: https://issues.liferay.com/browse/LPS-184578