Keyword

PHP Code in K2 Item

  • Usop Wilcha
  • Usop Wilcha's Avatar Topic Author
  • Offline
  • Junior Member
More
4 years 11 months ago #171917 by Usop Wilcha
PHP Code in K2 Item was created by Usop Wilcha
Hi

I have this custom code embed into every K2 Items - pastebin.com/Bjg7Lj1M

On the line #5 - $find = '{Page_Title}';

It is used to read the current item title by reading the database table

It used to working fine until recently when i updated to the Joomla 3.9.5 version and the K2 version 2.9

My question is,

Does there any changes happened in the latest K2 or Joomla itself that cause the code to stop working?

How can i fix the current code?

Thanks

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

More
4 years 11 months ago #171936 by JoomlaWorks
Replied by JoomlaWorks on topic PHP Code in K2 Item
You do realize you don't need all that, right? Especially if by "I have this custom code embed into every K2 Items" you literally mean K2 only.

All the info you want (if overriding item.php) is inside $this->item.

As a sidenote, nothing's changed in K2 in regards to the title.

Fotis / 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