How to use one component dialog fields in page component html files

Avatar

Avatar
Validate 1
Level 1
sams16001423
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
sams16001423
Level 1

Like

1 like

Total Posts

10 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
sams16001423
Level 1

17-02-2021

Hi All,

 

we have 100 + information pages - for which we have created a information component which will have
thumbnail image , title and a brief description including like views and share button where
user can share this information content on WhatsApp, fb & email. If user share's this information on WhatsApp then in WhatsApp chat we need to show title description and image like below screenshot

(for example I have shared bit bucket URL which)

 

sams16001423_1-1613631736501.png

 

 

so currently if I share any information page on WhatsApp these above three properties are coming from page properties  section so I have customized and added new thumbnail property(PFB screenshot) where we can author an image I'm reading image property along with title & description in metadata.html which all above 3 are displaying after sharing information page on WhatsApp like exactly same as bit bucket sample Image.

sams16001423_2-1613632014366.png

 

metadata.html sample code

sams16001423_3-1613632387389.png

so instead of authoring one image in component and authoring another image in page properties section , I want to use only one Image which is authored on page in the information component and i want to use that in  metadata.html (here calling sling model of info component in metadata.html and calling image is not working)as a result it will be visible when we share information page on WhatsApp .

or

suggest if you have any better approach like use all these three from HTML and write logic in JS where share button functionality & WhatsApp API call code is written

Thanks in advance

 

Thanks,

Sam

View Entire Topic

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

487 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

487 likes

Total Posts

1,049 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

18-02-2021

So is it possible to use the page properties image as thumbnail image in your information component