Non-Searchable Web Content is appearing in Asset Publisher
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- Web Content with Searchable option turned off is still showing in Asset Publisher
Resolution
-
Non-Searchable Web Content appearing in Asset Publisher is now the intended behavior for DXP 7.3 and 7.4 (LPS-141570).
- There is currently no configuration to prevent unsearchable Web Content from appearing in the Asset Publisher.
-
One potential workaround is to tag assets and use filters in Asset Publishers to include/exclude specific assets from being viewable. This can be done manually using the following steps:
-
- Add
nonsearchabletag by navigating to Site Menu > Categorization > Tags.
- Edit Web Content articles designated to be non-Searchable and add the 'nonsearchable' tag under Categorization and publish.
- Navigate to the Asset Publisher on page and edit Configuration. Scroll to the Filter section and add the following Rule:
- 'Does not Contain' 'All' of the following 'Tags':
nonsearchable
- You could use a Groovy script that adds a specific tag to all web content assets that have the Searchable option toggled off, at your team's discretion and direction.
Did this article resolve your issue ?