Hi All,
I have a requirement to exclude certain DAM asset folders from the Asset Finder search results when content authors are page authoring in edit mode. These are folders that are either archived or are draft / work-in-progress assets. For reference, this is where I want to exclude these assets from:
However, I do not want to exclude these results from the general search within the DAM interface, as I want archived / WIP assets to be discoverable in the DAM generally:
I think that I can do this by editing the oak indexes with excludedPaths, however when I edit the damAssetLucene index with @excludedPaths='/content/dam/archive', then it excludes the assets from both scenarios above, which makes the content non-discoverable. I just want to exclude it from being used in content authoring pages.
Is there a way to have the Asset Finder run off a different Lucene index? Or is there a better way to do this?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Then you need to overlay the component which render image in search.
http://localhost:4504/bin/wcm/contentfinder/asset/view.html servlet gets the results in content authoring interface and each result is in format of cq/gui/components/authoring/assetfinder/asset you can overlay this to add condition based on editor/URL and add remove this as part of result or overlay .
Views
Replies
Total Likes
Hi,
Simply add hidden=(Boolean)true property to archive folder or other folder to hide all the assets for content editing.
Hi Arun,
Thanks for your reply! I've had a go at setting hidden=true, however it hides the folder from both search interfaces I've mentioned above - the Asset finder in edit mode and the DAM search. It even hides the folders from the interface (even from the Admin user), however I want this content to be there and available for content creators to browse and edit. I just want to prevent content authors being able to use these images to author pages because these images are either a) in working state and not ready yet or b) old.
I've also thought that I could do this with a property isReady=true, but I have the same question about that - is there a way to make this applicable for the content author AssetFinder search, but keep it in the DAM search.
Views
Replies
Total Likes
Then you need to overlay the component which render image in search.
http://localhost:4504/bin/wcm/contentfinder/asset/view.html servlet gets the results in content authoring interface and each result is in format of cq/gui/components/authoring/assetfinder/asset you can overlay this to add condition based on editor/URL and add remove this as part of result or overlay .
Views
Replies
Total Likes
Thanks that worked. I overlaid the asset.jsp, and added a customisation to check for the node path;
String nodePath = assetNode.getPath();
if(nodePath != null) {
if(nodePath.startsWith("/content/dam/archived")) {
displayClass = "hidden";
}
Then in the coral card i added the display class, essentially just hidden if I don't want it available to content authors;
<coral-card class="editor-Card-asset card-asset cq-draggable u-coral-openHand <%= displayClass %>" >
Views
Replies
Total Likes
Hi arunpatidar26,
I actually have a follow up question about excluding ‘draft’ or ‘working’ state assets from the Asset Finder. The JSP used to render content fragment cards is different to the asset.jsp, so my draft and working content fragments are still displaying in the Asset Finder search results.
The JSP that is rendering the CF cards is: /libs/dam/cfm/components/v2/asset/asset.v2.jsp, however when I overlay this to /apps/dam/cfm/components/v2/asset/asset.v2.jsp and make changes it doesn’t actually get overlaid.
Is there something unique about overlaying that file? It is greyed out in the JCR, which I believe is Adobe's way of signalling that this is a deprecated file.
Views
Replies
Total Likes
Hi,
The overlay should work as v2 node is mark as granite:internalArea.
In order to make it safer and easier for customers to understand what areas of /libs are safe to use and overlay the content in /libs has been classified with the following mixins:
Please find more about content classification at Adobe Experience Manager Help | Sustainable Upgrades
How do you add image in CF? using RTE? CF RTE uses to pick http://localhost:4504/aem/assetpicker?mode=single&assettype=images images.
Views
Replies
Total Likes
Hi Arun,
Right, yes its marked as granite:InternalArea so that would explain why the overlay is not working because in your definitions "Nodes classified as internal cannot be overlaid, inherited, or used directly."
Does this mean that the Asset Finder for CF's cannot be customised? I would have thought this would be common to need to overlay. If there is no way to overlay I will go through Adobe Support to request a product patch.
Views
Replies
Total Likes
Yes, You can open ticket for specific use cases.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies