hello there
i need to make the call button to use a dynamice number field to pass a call , and the email button to use dynamic email filed also to send email
can help me to do so please
here is the link to my page : hidden link
Ex : hidden link ps"i dont know if this site is using dynamic content or static one"
thanks in advance !!
Hi,
Thank you for contacting us and I'd be happy to assist.
To suggest the best way to achieve this, I'll need to see how these icons are set up in the admin area.
Can you please share temporary admin login details, in reply to this message?
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
regards,
Waqar
Thank you for sharing the admin access.
In your content template "Modèle pour Cartes Digitales", I added the shortcode to get the current post's "e-mail" field, in the link settings for the email icon block, like this:
mailto:[types field='e-mail' output='raw'][/types]
And in the paragraph block below it, I used the same shortcode in the HTML code for the text link, like this:
<a href="mailto:[types field='e-mail' output='raw'][/types]">E-mail</a>
Similarly, in the link settings for the phone icon, I added the shortcode for the "numero-du-telephone" field:
tel:[types field='numero-du-telephone' output='raw'][/types]
And in the paragraph block below it, I used the same shortcode in the HTML code for the text link:
<a href="tel:[types field='numero-du-telephone' output='raw'][/types]">Appel</a>
thank u so much ur a life saver
so i can just understand it better :
i can put this prametre " mailto:[types field='e-mail' output='raw'][/types] " into the link filed and it will work ... isn't it ?
Thanks for writing back and glad I could help.
> i can put this prametre " mailto:[types field='e-mail' output='raw'][/types] " into the link filed and it will work ... isn't it ?
- Yes, that is correct.
You'll find the guide on Types Field API shortcodes at:
https://toolset.com/documentation/customizing-sites-using-php/functions/
My issue is resolved now. Thank you!