Insert a global var in a page
-
- Sr. Bludit
- Posts: 32
- Joined: Sun Feb 14, 2021 3:19 pm
- Has thanked: 6 times
- Been thanked: 4 times
- Contact:
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
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
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
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.
https://docs.bludit.com/en/plugins/hooks-list
Another using a jQuery script.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets