emiloberg / liferay-ddmtool

Tool for authoring, uploading, downloading and synchronizing Liferay DDM related stuff (Structures and Templates) across environments.
MIT License
36 stars 16 forks source link

Support for Staging environment #5

Open pavelfomin opened 9 years ago

pavelfomin commented 9 years ago

When staging feature is enabled in the site settings ddmtool publishes to the live version of the site instead of staging. We used the tool until the staging feature was enabled but could not use it after that and had to manually apply the template changes in staging version of the site. The template changes then would get published to the live version of the site with the rest of the content.

The enhancement would be to use a different group id associated with the staging version of the site instead of the group id associated with the live version.

emiloberg commented 9 years ago

Terribly sorry for the late reply!

That should absolutely be doable. As you say, it should only be a matter of using another groupId. I've no idea how to figure out that id, but I bet there's an API for it.

However - I'm completely swamped right now and truth be told, I most probably won't have time to look at it for another couple of weeks. If anyone wants to take a swing at it, the calls which needs to be changed are most probably in download.js