Ability to search, identify, and clearly mark pages disabled for guest view

Currently, deactivating or “hiding” unused pages in Liferay (e.g., seasonal landing pages) is complex and error-prone. It requires several manual steps — disabling guest access, excluding from sitemap and robots.txt, and later re-enabling everything manually.

Is there a way to filter for those pages, so I can find which pages I have altered?
Please let me know

1 Answer

1

What is your criteria for a page being “unused”?

The nature of landing pages is that they’re typically not linked from other pages, but are a starting point for visitors from external sites, or advertising calls-to-action, or similar. The platform has no clue which of these are in active use, unless they’re popular and frequently visited.

That being said, if you’re creating those seasonal landing pages and first hide them, but now you want to find them again: My recommendation is to give yourself some clues - e.g. by putting them in a specific location in the page tree. A page’s URL is independent of its tree position, so you can freely move it around once you come to it.

That being said: Preparing a new page can also be done with the Publications feature: You can prepare a fully visible page (or multiple pages) within a publication (and you can work on multiple different publications at the same time). Before publishing this content, it automatically won’t be visible to any visitor. And you’ll even have a proper name for this change-set, which makes it stand out of the otherwise potentially bigger set of inactivated pages.

Last, and with more effort: It certainly is possible through the API to create some element on the page that visualizes a page’s state - e.g. included in sitemap, guest-viewability, etc, without the need to go into the page’s set-up. And the API will allow you to figure this out for each page, so you can loop through all of them. It’d be a custom script/module to do this, but the information can be retrieved from the API.

My recommendation is to go with Publications though.

Hi, thanks for the reply. I understand that I can mark down which pages I modified. But it would be a good feature if there would be a more appealing way to find those pages which have been modified with different permissisons. Is it possible to include such feature for example a search bar for pages which have permission: GUEST --> VIEW

That sounds like it could go into the feedback category as feature request. Keep in mind though that you're asking for supporting a situation that you chose as a workaround, while there are existing features (e.g. Publications) that solve the underlying problem already in a different way - so this particular use case might be rejected (or prioritize it down). I guess there are other aspects that this solves - e.g. helping to get an overview over various permissions - that might be more suited as underlying use case.

I often state that the most flexible & complex permission system easily does what it's supposed to do, but the person in front of the screen will long have lost the overview over any complex permission-related setup, when the permission-checker happily does its job.

I'm new to Liferay and assumed that removing permissions is the standard way to disable pages or content for users. While this works, it makes it hard to track which pages or publications are hidden, since there’s no easy way to filter them. What’s the recommended way to create pages or publications that are hidden from users. How can I create such a publication, please explain in detail (maybe pictures) Thanks in advance.

Start here: https://learn.liferay.com/w/dxp/sites/publishing-tools/publications