Keyword

category template

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59279 by ravishankar rajendiran
category template was created by ravishankar rajendiran
hi,

I am looking to customise the category template for k2. I have never done this before but got few experiences doing template for Joomla. I have found few documentation in getk2.org/documentation/tutorials/item/174-templating-with-k2-and-the-concepts-of-sub-templates

can any one explain me clearly what all the steps I need to do to create my own category template for k2
..

All I need to to display each articles in row vise and display a extra filed as button in the right most of the category page.

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

More
12 years 10 months ago #59280 by william white
Replied by william white on topic Re: category template
After you copy the default folder and rename it to YourOverrideName
Edit category.php and category_item.php to get the desired effect.
You may use the Category parameters to turn off the display of a lot of things first

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

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59281 by ravishankar rajendiran
Replied by ravishankar rajendiran on topic Re: category template
thanks for the reply William.

Yep I renamed the folder to my desired name. The template name is not shown up in the category parameter section in template selection drop down?

Do i need to change any other options ? like admin xml files?

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

More
12 years 10 months ago #59282 by william white
Replied by william white on topic Re: category template
No, it should work when the new folder is
yoursiteroot/templates/yourtemplate/html/com_k2/templates/yournewfolder

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

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59283 by ravishankar rajendiran
Replied by ravishankar rajendiran on topic Re: category template
thanks William. made proper duplicate and it works now fine.


thanks for your time.

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

More
12 years 10 months ago #59284 by william white
Replied by william white on topic Re: category template
Welcome, i see that with the image issue in another thread you were refering to a post in the old forum of mine. Did you get that worked out?

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

  • ravishankar rajendiran
  • ravishankar rajendiran's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59285 by ravishankar rajendiran
Replied by ravishankar rajendiran on topic Re: category template
No, I was not able to get pass it. I am trying to place a default image for all the k2 articles which doesn't have title image to it.

my template is purely based of images of articles. If the articles are without images the site looks so dull.


Can you help me out to do this.


Thanks,

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


Powered by Kunena Forum