Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Can a site template have both private and public pages?
I am using Liferay 7.3 GA7 and I need to create both public and private pages from a template. It will be used to create dozens - perhaps hundreds - of sites, and they need to inherit changes to the template.
I have created a new site template, and I don't seem to be able to create public pages. From the Page Tree I select "Public" and then click '+' and create the page. But the page ends up in the Private site.
When I go to Site Builder > Pages, I don't even see separate public and private pages.
I thought that I was able to do this before (in Liferay 6.x) but after thinking about it I believe I created separate templates for Private and Public pages, and the Liferay 6 site creation allowed selecting which template to use for public pages and which to use for private pages - and in Liferay 7.3 there is only one selection and the template is applied to the private pages.
Can anyone tell me how they are addressing this issue?
Thanks,
Hi Scott,
If my underastanding of your description is correct, the answer is that you don't create private or public pages for a site template. The site templates have only one page set. You can choose if you want to propagate that page set to a private or a public page set of the site, when you create the site based off of the site template.
Regards,
Thank you Zsigmond. That was my understanding - and how it was in the past.
The issue is that I can't assign a template to each of the page types the way I could in Liferay 6. The form for creating a new site no longer has a selection for each of the page types, but a check box to set the template pages to public or private. So because of that it seems impossible to assign a template to both the public and private pages that way we could in the past.
Hi Scott,
In the latest version, and I believe in the version that you use also, it can be set after creating the site. At the Site Settings > Pages. Have you checked that already?
Regards,
Hi Zsigmond,
That would be great, but it doesn't seem to exist in my verson (7.3 GA7). Or at least I couldn't find it and I looked pretty carefully.
- Scott
Hi Scott,
Isn't this section there in your portal?
Regards
Interesting. No, I don't see that option.
Zsigmond,
Thanks for all of your help. It lead be to experimenting since I knew what to look for from your screenshot.This difference is that our sites are created as organization pages. So even though they work like sites in almost every regard, there must be a difference under the hood the prevents them from being assigned site templates.
We have so many existing sites made from organization pages that it may be difficult to swap for "normal" sites (not sure how to differentiate these). However, it does give a potential path forward.
I hope you'll indulge one last question. While researching this issue I can across a statement that public and private pages "go away" in 7.4. Can you confirm and/or elaborate?
Thanks again,
Hi Scott,
I believe this answers your question: https://learn.liferay.com/dxp/latest/en/site-building/creating-pages/understanding-pages/understanding-pages.html#enabling-private-pages
Regards
Powered by Liferay™