- Posts: 7
COMMUNITY FORUM
Where is class code? ...lists['categories'];...
- tibos
-
Topic Author
- Offline
- New Member
Less
More
13 years 2 weeks ago - 13 years 2 weeks ago #66452
by tibos
Where is class code? ...lists['categories'];... was created by tibos
Hi,
There is a code on components/com_k2/templates/default/itemform.php 82. line.
There is a code on components/com_k2/templates/default/itemform.php 82. line.
Log in or Create an account to join the conversation.
- tibos
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
13 years 2 weeks ago #66453
by tibos
Replied by tibos on topic Re: Where is class code? ...lists['categories'];...
tibos wrote: Hi,
There is a code on components/com_k2/templates/default/itemform.php 82. line.
Log in or Create an account to join the conversation.
- Jerry
-
- Offline
- New Member
Less
More
- Posts: 15
12 years 11 months ago #66454
by Jerry
Replied by Jerry on topic Re: Where is class code? ...lists['categories'];...
I have to say I am a bit annoyed as well on it being so hard to find class definitions, etc. I can understand K2 have to follow the joomla structure, which is very confusing to say the least...
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 11 months ago #66455
by Lefteris
Replied by Lefteris on topic Re: Where is class code? ...lists['categories'];...
Hi. You need to take a look at the corresponding view.html.php file. Modifying this files however, is not a good idea. You need to make a template override and make the modifications there.
Please Log in or Create an account to join the conversation.
- Jerry
-
- Offline
- New Member
Less
More
- Posts: 15
12 years 11 months ago #66456
by Jerry
So copying view.html.php to /templates/MYTEMPLATE/html/com_k2/SUBTEMPLATE/view.html.php is enough? That file is not in the templates folder...
Replied by Jerry on topic Re: Where is class code? ...lists['categories'];...
Lefteris Kavadas wrote: Hi. You need to take a look at the corresponding view.html.php file. Modifying this files however, is not a good idea. You need to make a template override and make the modifications there.
So copying view.html.php to /templates/MYTEMPLATE/html/com_k2/SUBTEMPLATE/view.html.php is enough? That file is not in the templates folder...
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 11 months ago #66457
by Lefteris
Replied by Lefteris on topic Re: Where is class code? ...lists['categories'];...
No. You cannot do this. You cannot override those files. You can override the layout files and there modify the variables.
Please Log in or Create an account to join the conversation.