Page 1 of 1

Insert a global var in a page

Posted: Sat Feb 20, 2021 6:55 pm
by Sergelie
Is there a way to insert a global variable in a post (I am using tinymce and the php code is protected)?

Per example I would want to have a dynamic QR-Code produced based on some info stored in the configuration panel.

I know how to find those vars but do not know how to insert it either in html directly or in a script.

Thanks for your help.

Sergelie

Re: Insert a global var in a page

Posted: Sun Feb 21, 2021 2:55 pm
by Edi
One way could be with a plugin using the hook siteBodyBegin or siteBodyEnd:

https://docs.bludit.com/en/plugins/hooks-list

Another using a jQuery script.