Site Template Propagation
Now that you have a site template and a site based on that template, you can make alterations to the site template and propagate those changes to the connected sites.
Remember: making changes to a page inherited from a template prevents the propagation of template changes to that page. Therefore, you should keep the inherited pages unchanged and alter only pages created for that site specifically. If you do change them, you can always revert the changes and reconnect the inherited page to its template.
Making Alterations to the Site Template and Propagating Them
When you created the Site Template, the Ready for Propagation option was on. This means that every change you make in your template is propagated automatically to the connected sites.
See how it works by altering the address of the Tokyo Office in the About Us and Contact Us pages.
-
Return to the Site Template. Open the Global Menu (), select the Control Panel tab, and click Site Templates under Sites. Select the
Glance and B2B Site Template
. -
Open the Site Menu () and select Site Builder → Pages.
-
Select the About Us page.
-
Scroll down and double-click the paragraph component in the Tokyo Office card.
-
Change the address to
Mikasa Bld 1F 2-8-8, Tokyo. Japan
. -
Publish the page.
If you visit the About Us page in the Glance site (the connected site), you can see that the address is altered there.
Disconnecting and Reconnecting Propagation in a Connected Page
Make an alteration to the About Us page in the Glance site to see what happens when the propagation is disabled.
-
In the About Us page in the Glance site, click Edit () at the top right corner of your page.
-
Change the paragraph in the first row. Double-click the paragraph, select
Discover the clarity of vision you deserve with Clarity.
and remove its bold formatting.An icon appears next to the name of the page. It means that the propagation was disconnected for that page. Any changes you make to the template are not propagated to that page anymore.
-
To reconnect the propagation, click Additional Information () → Reset Changes.
The propagation is re-enabled and all changes to the template are propagated again.
Disabling Propagation in a Template Page
You can also disable the propagation in the template page for a while. It can save resources as each page modification can trigger a propagation from the site template to the connected sites.
To disable propagation in a template page,
-
Navigate back to your template and start editing the About Us page.
-
Click on the Propagation icon () next to the name of the page and click Disable Propagation.
You can now make alterations to the page and they are not propagated to connected pages.
Once you are done, click Propagation () again and click Ready for Propagation. All the alterations are propagated to connected pages.
That’s it. Congratulations, Liferay Learner! You have just completed this module.
During these lessons, you have learned how to create a site template, create pages, use compositions, create forms mapped to object definitions, use collection displays, create navigation menus, configure menu displays, create a new site based on a site template, and how to use site propagation to make the process of maintaining pages even more convenient.
Phew! That was a lot. Keep on practicing!
Next, you’ll learn how to modify the Site Look and Feel.