- Posts: 7
COMMUNITY FORUM
Where is class code? ...lists['categories'];...
- tibos
- Topic Author
- Offline
- New Member
Less
More
12 years 4 months ago - 12 years 4 months 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
12 years 4 months 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 2 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
- Moderator
Less
More
- Posts: 8743
12 years 2 months ago #66455
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jerry
- Offline
- New Member
Less
More
- Posts: 15
12 years 2 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
- Moderator
Less
More
- Posts: 8743
12 years 2 months ago #66457
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.