JCollection Homepage

  • Increase font size
  • Default font size
  • Decrease font size
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Side Bar Module Help
(1 viewing) (1) Guest
General questions regarding JCollection
Go to bottomPage: 1
TOPIC: Side Bar Module Help
#484
Side Bar Module Help 1 Year, 5 Months ago  
Hi - First of all I would like to say I really like this component. I would like some help/advise on how to tweak the side bar module.

I want to have in my side bar all the Categories of jcollection and their subcategories with their tree structure. It seems as if I could only or show all items, or only show one category (and not its subcategories).

Any advise would great

Thank you very much and sorry for my english

Pablo
pablo
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#485
Re: Side Bar Module Help 1 Year, 5 Months ago  
Hi Pablo,

unfortunately, without some minor (showing also the subcategories) and major (showing a tree-like structure) modification in the source-code this is not possible. Since I am currently working hard on the next release (soon to come!), I doubt that I have enough time to include this feature - maybe the subcategories, but it is not very likely.
Regards,
Thorsten.
tcriess
Posts: 292
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#486
Re: Side Bar Module Help 1 Year, 5 Months ago  
Hi Thorsten,
Thanks for your answer. However, can you give me some advice for modifying myself the mod_jcollection_list module source code for at least showing the subcategories. This part is iimportant for my proyect.

Thank you very much in advance.

Regards

Pablo
pablo
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#487
Re: Side Bar Module Help 1 Year, 5 Months ago  
Hi,
have a look at the file "helper.php" in the folder "modules/mod_jcollection_list". You need to change "$catmodel->setNoSubcats( true );" to "$catmodel->setNoSubcats( false );". Then the subcategory data is also fetched. But to display it, you need to change "tmpl/default.php". Before the "foreach" loop, you'd need an additional loop to display the subcategories, something like "foreach( $items->subcategories as $cat) { some_html_output, f.e. echo $cat->name or so }". Note that this is not tested!
HTH,
Thorsten.
tcriess
Posts: 292
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Donations

If you like JCollection, please consider a small donation to help developing the component. If you don't have a PayPal account and still wish to donate, feel free to send an Amazon.de gift certificate (to thorsten.riess@sh-riess.de). Thank you very much!

Amount: 

Flattr

Advertisement