Hello,
I am new to K2 and only somewhat acquainted with Joomla in general, but need to make some improvements for a client of mine I've figured out how to override the templates with no problem and have made successful changes to the item layout.
What I'm trying to do now, is I need to add one <link> tag to the <head> section of items. I've tried to do it from my item.php override, but I'm guessing it's too late at that point to add head content. I need information from the K2 item which is why I'm trying to do this in K2. I can see that I could do it very easily in:
components/com_k2/views/item/view.html.php
but being a good developer, I would rather not modify the code directly. So my question is if there is a way to override the view code file so that I can make this change in my own copy and have it picked up by K2?
Thanks for any help on this.
I am new to K2 and only somewhat acquainted with Joomla in general, but need to make some improvements for a client of mine I've figured out how to override the templates with no problem and have made successful changes to the item layout.
What I'm trying to do now, is I need to add one <link> tag to the <head> section of items. I've tried to do it from my item.php override, but I'm guessing it's too late at that point to add head content. I need information from the K2 item which is why I'm trying to do this in K2. I can see that I could do it very easily in:
components/com_k2/views/item/view.html.php
but being a good developer, I would rather not modify the code directly. So my question is if there is a way to override the view code file so that I can make this change in my own copy and have it picked up by K2?
Thanks for any help on this.