Keyword

Changes made to item.php are gone after update

More
11 years 8 months ago #109915 by M@tin
Hi there, I have a little problem about K2 intro text limit. Actually my intro text limit in K2 was not working. I made a change to item.php located in \components\com_k2\models\ . In that file i changed the following line
if ($item->params->get('catItemIntroTextWordLimit') && $task == 'category')
to
if ($item->params->get('catItemIntroTextWordLimit') && ($task == 'category' || $task == 'user' || $task == 'tag' || $task == 'date' || $task == 'search' || $task == ''))
and it worked. My problem is when i updated K2 they are gone. So how to keep all such type of changes even after update. Thaks in advance. :'(

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

More
11 years 8 months ago #109916 by jean-philippe
Replied by jean-philippe on topic Re: Changes made to item.php are gone after update
Hi Matindra Malik,

It's because you HACK the K2 Component.

I've a solution for you..

Create a custom template and on "each" header file you can do something like :
					
Emond, Jean-Philippe

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

More
11 years 7 months ago #109917 by M@tin
Hey Jean, thanks for your reply. Actually I am quite new to Joomla. Can you explain in detail.

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


Powered by Kunena Forum