WebSite X5Help Center

 
Denis I.
Denis I.
User

Add PHP snippet in Graphic Template  en

Autor: Denis I.
Visitado 2444, Seguidores 2, Compartilhado 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?

Publicado em
1 RESPOSTAS - 1 CORRIGIR
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.

Ler mais
Publicado em de Claudio D.