php code injection in header - SOLVED

Hello is it possible to inject php code to through studio or in a template file?
I couldnt do through studio injection, code is not working just written as text.

Now I tried template/_header.html from there it works.

  • 408
  • More
Replies (4)
    • Hello Cem Bagdatli !

      No, UNA has the high-level of safety, so PHP injections are out of this thread. If you need to have own PHP code then better to do it via a new app's creation. But you may also correct the PHP files of installed modules, but in this case, you will lose the automatic upgrade of it and you will need to erase then add your changes again and again.

      • Hi Leonid thanks for your promt answer.
        Now I tried template/_header.html from there it works.
        Yes of course it is better to create these changes through new app process, but my current skills and time for learning is not suitable for this :)
        I may ask from boonex in future to create custom app  for my need, but for now I need at least to start the things by myself :)

        Actually what I want to do is to add automatically relevant keywords and apply schema.org rules to headers of specific blog posts.

        By the way Amitesh Kumar  thanks for the info about schema.org that you mentioned before, I didnt know this system at all, it will be very helpfull for my setup.

        • Besides everything I have to admit that UNA ecosystem is very structured and user friendly that allows even for a nonprofessional like me to do a lot of customization.
          UNA is PERFECT :)

          • No it is not working properly even from template file.
            But I solved it and many other needs through creating another layer between UNA and browser.

            Login or Join to comment.