• Register or
  • Sign In
    • Forgot your password?
    • Forgot your username?
    Or sign in with your account on:
    Facebook
    Twitter
    Google
    LinkedIn

K2 | The powerful content extension for Joomla! developed by JoomlaWorks

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
Leverage the power of rich media publishing the easy way!
  • Index
  • Recent Topics
  • Search
Welcome, Guest

To post messages, you need to login first.
K2 Community Forum
K2 Community Forum
New to K2? Ask here first!

Where is class code? ...lists['categories'];...
(1 viewing) (1) Guest
Reply Topic
New Topic
  • Page:
  • 1

TOPIC: Where is class code? ...lists['categories'];...

Where is class code? ...lists['categories'];... 1 year ago #12903

  • tibos
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi,

There is a code on components/com_k2/templates/default/itemform.php 82. line.

<?php echo $this->lists['categories']; ?>


Where is class code? Where is real place? I want to add an "else" code into ...lists['categories']....

Thx,
Last Edit: 1 year ago by tibos.
Reply Quote

Re: Where is class code? ...lists['categories'];... 1 year ago #12957

  • tibos
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
tibos wrote:
Hi,

There is a code on components/com_k2/templates/default/itemform.php 82. line.

<?php echo $this->lists['categories']; ?>


Where is class code? Where is real place? I want to add an "else" code into ...lists['categories']....

Thx,


Does anybody know source code for ...lists['categories']...?
Reply Quote

Re: Where is class code? ...lists['categories'];... 11 months, 1 week ago #158913

  • Jerry
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
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...
Reply Quote

Re: Where is class code? ...lists['categories'];... 11 months, 1 week ago #158946

  • Lefteris Kavadas
  • ( Admin )
  • OFFLINE
  • Administrator
  • Posts: 2226
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.
Reply Quote

Re: Where is class code? ...lists['categories'];... 11 months, 1 week ago #158963

  • Jerry
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
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...
Reply Quote

Re: Where is class code? ...lists['categories'];... 11 months, 1 week ago #159014

  • Lefteris Kavadas
  • ( Admin )
  • OFFLINE
  • Administrator
  • Posts: 2226
No. You cannot do this. You cannot override those files. You can override the layout files and there modify the variables.
Reply Quote
Reply Topic
New Topic
  • Page:
  • 1
K2 Community Forum
K2 Community Forum
New to K2? Ask here first!
Find this topic helpful? Why not share it with others?
Tweet
Powered by Kunena
Time to create page: 0.22 seconds
Advertisement
  • Contact us
  • Join the K2 Expert Companies list
  • Privacy Policy
back to top
Copyright © 2006 - 2013 JoomlaWorks Ltd.. All rights reserved. K2 is a joint project by JoomlaWorks Ltd. & Nuevvo Webware Ltd., released under the GNU/GPL v2 license.
Joomla! is a registered trademark of Open Source Matters, Inc. JoomlaWorks/Nuevvo are not affiliated with or endorsed by Open Source Matters or the Joomla! Project.
designed by Nuevvo