Keyword

Subcategories show thumbnails of their items

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91834 by Manuel Diaz
Ok, here is what I want to acomplish:

(Category view)

 

Main Category title

Main category description ...

 

Subcategory 1 title

Subcategory 1 description

Subcategory 1 items (only thumbnails) x 12 (4 columns)

 

Subcategory 2 title

Subcategory 2 description

Subcategory 2 items (only thumbnails) x 12 (4 columns)


 

and so on .. (See attached image as reference. )

 

I 've tried messing around with the parameters, and all I get is subcat title + subcat description, and then, below, the items all mixed up.
Attachments:

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #91835 by Jiliko.net
Replied by Jiliko.net on topic Subcategories show thumbnails of their items
Hi,

 

You can do that by Adding some php code to the category template to retrieve item thumbnails.

 

Do you want to keep the list of items below ?

 

Regards,

 

Olivier

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91836 by Manuel Diaz
Replied by Manuel Diaz on topic Subcategories show thumbnails of their items
Actually no. Just the subcats and the thumbnails (items) in that block, after that, no more items.

 

Can you give me a hint on the type of php code I need to add .. or more importantly, where? (what file)

Olivier Nolbert said:

Hi,

 

You can do that by Adding some php code to the category template to retrieve item thumbnails.

 

Do you want to keep the list of items below ?

 

Regards,

 

Olivier

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #91837 by Jiliko.net
Replied by Jiliko.net on topic Subcategories show thumbnails of their items
You'll have to modify the category.php to retrieve all items from each subcat (Actually, the sql query from the model only loads the items for the current page)

 

For each list of items, you'll have to retrieve the item thumbnail and load it.

 

So, some php with sql queries & some css...

 

Regards,

 

Olivier

Please Log in or Create an account to join the conversation.

  • Manuel Diaz
  • Manuel Diaz's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91838 by Manuel Diaz
Replied by Manuel Diaz on topic Subcategories show thumbnails of their items
But then, all k2 categories will be affected, right?  Unless it's a parameter.

 

Oh well, We'll give it a try, and as usual, any help would be appreciated. Olivier Nolbert said:

You'll have to modify the category.php to retrieve all items from each subcat (Actually, the sql query from the model only loads the items for the current page)

 

For each list of items, you'll have to retrieve the item thumbnail and load it.

 

So, some php with sql queries & some css...

 

Regards,

 

Olivier

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum