Keyword

Sub-Category Layout

  • GreenDome
  • GreenDome's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 8 months ago #92995 by GreenDome
Sub-Category Layout was created by GreenDome
Hi,

 

I was wondering if anyone knows how i can change the sub category layout to include the latest 5 articles from that category. E.g. I have a main category with 3 sub categories and immediate under the category image i would like to display the latest 5 articles.

 

Please see the attached screen shot for clarification.

 

Thank you

GD
Attachments:

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

More
13 years 8 months ago #92996 by Jiliko.net
Replied by Jiliko.net on topic Sub-Category Layout
Hi GreenDome,

I've already worked on such template modifications and will try to attach template code asap.

Regards,

Olivier

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

  • GreenDome
  • GreenDome's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 8 months ago #92997 by GreenDome
Replied by GreenDome on topic Sub-Category Layout
Excellent :)  - Thank you very much Olivier, look forward to your template code.

GD

Olivier Nolbert said:

Hi GreenDome,
I've already worked on such template modifications and will try to attach template code asap.

Regards,

Olivier

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

More
13 years 8 months ago #92998 by Jiliko.net
Replied by Jiliko.net on topic Sub-Category Layout
GreenDome,

 

In attachment the 'category.php' file to place in your K2 template overriding folder. If you haven't worked yet with K2 templating, just go here.

 

This overriding retrieves the last 5 items from each subcategory and display their title as a link to item page.

 

Olivier

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

  • GreenDome
  • GreenDome's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 8 months ago #92999 by GreenDome
Replied by GreenDome on topic Sub-Category Layout
Hi Olivier,

 

Thank you very much for the attached file - it works just fine, much appreciated.

 

Please could you advise how to add bullets points to the 5 item links or if wanted to do some CSS styling which file would edit i.e. k2.css or template_css.css?

 

Thank you again,

GD 

 

 

 

Olivier Nolbert said:

GreenDome,

 

In attachment the 'category.php' file to place in your K2 template overriding folder. If you haven't worked yet with K2 templating, just go here.

 

This overriding retrieves the last 5 items from each subcategory and display their title as a link to item page.

 

Olivier

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

More
13 years 8 months ago #93000 by Jiliko.net
Replied by Jiliko.net on topic Sub-Category Layout
GreenDome,

 

You can do that in the k2.css but the best way would be to intall CSS4K2 plugin and create a specific css file for your K2 custom template.

 

More info here : www.jiliko.net/extensions/css4k2

 

Olivier

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

  • GreenDome
  • GreenDome's Avatar Topic Author
  • Offline
  • Premium Member
More
13 years 8 months ago #93001 by GreenDome
Replied by GreenDome on topic Sub-Category Layout
Thank you, will try the CSS4K2 plugin.

 

GD

 

Olivier Nolbert said:

GreenDome,

 

You can do that in the k2.css but the best way would be to intall CSS4K2 plugin and create a specific css file for your K2 custom template.

 

More info here : www.jiliko.net/extensions/css4k2

 

Olivier

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

More
13 years 8 months ago #93002 by william white
Replied by william white on topic Sub-Category Layout
Thanks for sharing olivier - Another handy script from Jiliko.net!

Olivier Nolbert said:
GreenDome,

 

In attachment the 'category.php' file to place in your K2 template overriding folder. If you haven't worked yet with K2 templating, just go here.

 

This overriding retrieves the last 5 items from each subcategory and display their title as a link to item page.

 

Olivier

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

More
13 years 5 months ago #93003 by william white
Replied by william white on topic Sub-Category Layout
Paul, if the attachment above works for you can you not just hide the title and show the image in the item view in category listing settings?

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

  • Be Everything Limited
  • Be Everything Limited's Avatar
  • Offline
  • New Member
More
13 years 4 months ago #93004 by Be Everything Limited
Replied by Be Everything Limited on topic Sub-Category Layout
GreenDome

 

The latest items within the category is so close to what we need for a site, apart from we need the download attachment link to also be included? is there anyway of doing this?

 

regards

 

alex md be

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


Powered by Kunena Forum