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

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

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
adding the missing features in Joomla!
  • 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!

Front page grid challenge
(1 viewing) (1) Guest
Reply Topic
New Topic
  • Page:
  • 1

TOPIC: Front page grid challenge

Front page grid challenge 3 months, 2 weeks ago #8162

  • Jonas Gythfeldt
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
After spending god knows how many hours in the community, watching videos, reading tutorials and even posting in this very forum - I have learned very little.

I am, however, very close to my goal. The only thing (I think) that I have not been able to figure out is:

<em>How to show a grid of my main level categories with their (linked) category images (and nothing else) on the front page (and ONLY on the front page). Mind you, other non-k2 and k2 modules located on the front page most work too.</em>

I'm pretty sure this (for some strange reason) cannot be done without rewriting category.php. Any objections (William?)?

I have a feeling that this is a pretty simple code-rewrite. I might be mistaken, but it's hard for me to know since I can only read a fraction of the php involved.

So. If I'm right: could anyone give me some pointers as to what code to re-write in category.php - or is this one of those questions that will not be answered unless it's posted in the "Seeking professional (paid) services for K2?" - topic? If so - name your price.

Best regards!
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8163

  • William White
  • ( Moderator )
  • OFFLINE
  • Moderator
  • Posts: 644
Jonas, Whatever you want to do, does not depend on me. I am a volunteer here, and have been for several years. There is still a wealth of information archived on the community.getk2.org site that you may find usefull

If you have K2 installed you can read ever line of code that k2 includes. I find myself reading the code to figure out things many times.

I pointed you to the solution that i have used to avoid the rewrite of the code myself as you speak of.
wjwjr
Please include Joomla and K2 versions in your questions, also a link to your site if live will be helpfull
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8169

  • Jonas Gythfeldt
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
William. I am sorry. I see now that my comment is unclear and can be read as a negative remark on your behalf. That was not my intention. After all, pretty much all I have learned in here - I've learned from you. I guess we have to write this one on a language-barrier-account. Hope that's OK?

That beeing said. I do have K2 installed, I have read lots of the code severeal times and I have tried to follow your directions - but I'm still at a lost.

Now, I don't like to give up. That's why i figured I had to reformulate my question to make it as prescise as possible (and on top - offer to pay for the answer).

I do have to disagree with you on one point though William. I do not think there is a wealth of usefull information on this site compared to most other large extention/plug-in sites I have come across. This site could do with some good tutorials on basic configuring of k2.
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8173

  • William White
  • ( Moderator )
  • OFFLINE
  • Moderator
  • Posts: 644
Thanks, There was more reference on the old site community.getk2.org, but it has been removed. I think more will be appearing soon, but it will take a while for it to be 2.5 specific as everyone is changing their code to work with 2.5.
There is no pm here, so if your on joomla forum, pm me at wwhite and send me the override your working on and i will take a look at it
wjwjr
Please include Joomla and K2 versions in your questions, also a link to your site if live will be helpfull
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8179

  • Jonas Gythfeldt
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Thanks for understanding.

I've pretty much gone through a process where I've stripped down category.php to it's bear bones and put it back together again without figuring out where to modify anything So now I'm back to scratch with an unmodified cataolg.php.

I'm suspecting I would have to write something to manipulate the class K2ViewItemlist (located in view.html.php?) to show all my main categories (by ID) and insert them under the class itemListCategoriesBlock in cataolog.php?

If I'm on the right track - that would mean that I would have to be able to understand how view.html.php actually works, but I guess that's gonna take me a few months... I don't even understand why there are three files in that folder (view.html.php, view.feed.php and view.raw.php)...

As you probably understand - I'm not seeing the forest for all the trees here...
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8180

  • William White
  • ( Moderator )
  • OFFLINE
  • Moderator
  • Posts: 644
Try to stay out of the core. Start with an override. edit category.php and category_item.php
place html code in each file outside of the php tag so it will show you what its doing and where
You can comment out or delete entire blocks of code or rearrange them to suit your needs.
Its a blend of the k2 params and the files in the override.
at least thats the way i did it
wjwjr
Please include Joomla and K2 versions in your questions, also a link to your site if live will be helpfull
Reply Quote

Re: Front page grid challenge 3 months, 2 weeks ago #8191

  • Jonas Gythfeldt
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Reply Quote
Reply Topic
New Topic
  • Page:
  • 1
K2 Community Forum
K2 Community Forum
New to K2? Ask here first!
Moderators: Simon Wells
Find this topic helpful? Why not share it with others?
Tweet
Powered by Kunena
Time to create page: 0.18 seconds
Advertisement
  • Contact us
  • Become a partner
back to top
Copyright © 2006 - 2012 JoomlaWorks Ltd. All rights reserved. K2 is released under the GNU/GPL v2 license.
Joomla! is a registered trademark of Open Source Matters, Inc. JoomlaWorks/K2 are not affiliated with or endorsed by Open Source Matters or the Joomla! Project.
developed by Nuevvo