Expand my Community achievements bar.

SOLVED

Ability to preview or thumbnail to preview for XF

Avatar

Level 7

Currently, there is no way to preview or thumbnail the content validation for look-alike or similar content in the XF authoring page.Therefore, we need to implement a feature that allows authors to preview or thumbnail the content validation for look-alike or similar content.

  1. When editing a XF in site admin view, there should be a preview or thumbnail option available for content validation.

  2. The preview/thumbnail should dynamically update when changes are made to the content, ensuring real-time feedback during the authoring process.

My Approach :  I think we can use coral UI for this on hover on XF but how do we get the preview of the XF and render it using coral or there's some other approach we should take any suggestion , ideas i am open for a discussion on this 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 3

Use a Coral UI component, such as a Coral Tooltip, to show a thumbnail or preview. You could trigger this tooltip to load the preview URL of the XF when the author hovers over the item in the site admin view. And you can either use a polling mechanism for real time changes or event based triggers, or a mix of both. Use Coral UI's <coral-popover> component, which can be attached to your XF item and you can populate it with Javascript. Never did this myself but this would be my approach. Let me know of your findings.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Use a Coral UI component, such as a Coral Tooltip, to show a thumbnail or preview. You could trigger this tooltip to load the preview URL of the XF when the author hovers over the item in the site admin view. And you can either use a polling mechanism for real time changes or event based triggers, or a mix of both. Use Coral UI's <coral-popover> component, which can be attached to your XF item and you can populate it with Javascript. Never did this myself but this would be my approach. Let me know of your findings.

Avatar

Community Advisor

Hi @abhishekanand_ 
You can generate thumbnail on demand using JS mentioned below

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/bulk-generate-page-thumbna... 

 

 

Steps to Generate a Page Thumbnail in AEM with Java(EventListner)
1. Get the Page Content: You’ll first need to retrieve the page content for the URL you want to capture as an image.

2. Use a Renderer to Create a BufferedImage: Using Java's BufferedImage, render the page content and then convert it to an image file.

3. Save or Store the Thumbnail: Save the BufferedImage as a PNG or JPEG thumbnail, which can then be stored in the AEM DAM or displayed on the page.



Arun Patidar