This repository will be used to upload source files for Liferay blogs I write. I will add a small instruction on how to use the source files for each blog I write.
Using Liferay fragments as mini templates Blog
- Add a content Structure with the structure from /documents/Structures
- Add all the mini template fragments with the code from /fragments/mini-templates except for the complete-article fragments
- Add a display page for the Structure Article and add the article fragment, set the display page as the default display page
- Create an article, and view the article
- Add a content Structure with the structure from /documents/Structures
- Install the Template context contributor from /modules/liferay-template-context-contributor
- Add a fragment with the code from /fragments/mini-templates/complete-article (Note: Or rewrite the mini templates to use the new services)
- Add a display page for the Structure Article and add the article fragment, set the display page as the default display page
- Create an article, and view the article
Removing panels from my account in Liferay 7.2 Blog
- Install the fragment bundle from */modules/admin-web-my-account-fragment (check if bundle version matches your environment)
- Install the custom screen navigation module from */modules/custom-my-account-screennavigation-entries
- Check the "My Account settings" screen
Allow portlet pages to be shown in Liferay Search Blog
- Install the module portlet-layout-model-pre-filter-contributor
- Check whether you can now find widget pages, through search or use the Search Insight portlet to see if the query is changed