WebSite X5Help Center

 
Denis I.
Denis I.
User

Add PHP snippet in Graphic Template  en

Author: Denis I.
Visited 2388, Followers 2, Shared 0  

I would like to know if it's possible to add a small piece of PHP code in Step 1 Edit Graphic Template.  I'm creating my own member system and using X5 V9 as a template.  This piece of code will check:

If the user is signed in, it will display their username and logout buttons OR

It will display Login and Sign Up buttons.

I want to put this in the graphic template section so it will appear on every page.  Does that HTML code box accept PHP?

Posted on the
1 ANSWERS - 1 CORRECT
Incomedia
Claudio D.
Incomedia

Hello Denis,

Yes you can add php code in the HTML Box. You only need to change the extensions of the page to be php so the code is correctly interpreted when run on the server.

Please feel free to write back if you need more information.

Read more
Posted on the from Claudio D.