lionah/liferay-plugins — pull request #183 by johnnyhowey (2012-04-11 22:56:27+00:00)
Title: SOS-899 workaround

Ryan,

I still need this workaround to ensure the template pages are in the correct order when merged with an existing site with exisiting pages. Ray's fix in the portal didn't work completely. Until the fix is in, we will need this code.

The reason I am getting all the layout before the template is merged is because I only want to reorder the existing pages. I am setting the priority to priority + 1, so in updatePriority() will run and detect there is a template applied to the site, and then it will add the prioriyBuffer to the page. (This is the recent change Ray makes)

Please let me know if you have questions.