Keyword

Embed php code into k2 item

More
11 years 2 months ago #116057 by cody
Embed php code into k2 item was created by cody
Hello, I have a website created using joomla 3.x and I have installed k2 to use the items feature, but in one of the items i need to insert a form that i have created in php. I have the html design and everyhing for the form but i do not know how to insert the code into k2.could someone please help me with this ? thanks!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 2 months ago #116058 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Embed php code into k2 item
Hello cody,

I don't think your editor will allow PHP code in your items. You can either use a module using the loadposition method, develop a K2 Plugin or you can also override the item view.

The item view file is called item.php. More on overriding can be found here:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum