Keyword

item view layout for default k2 template

  • Martin bright
  • Martin bright's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 month ago #131357 by Martin bright
item view layout for default k2 template was created by Martin bright
Dears I am new over hear
I need a help from you.
I am planing to use k2 for my site almost every thing is done with the back end setting.finally I need to show my item in a particular view as
1.image should be in left side with specified size
2. Extra Fields in right side to image
3.detailed text in below the image

Any one please tell me what I have to change...

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

More
10 years 1 month ago #131358 by JoomlaWorks
Replied by JoomlaWorks on topic Re: item view layout for default k2 template
What you want requires basic knowledge of HTML and CSS.

The first step is to copy K2's sub-templates inside your template as outlined here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Then you can modify the item view file (default/item.php) and position the image, text and extra fields within the html structure that you wish.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
10 years 1 month ago #131359 by Brian
Hi All,
Thanks for your thread. My problem after reading the article is; when I copy the files over to templates there is no com_k2 in the HTML folder in any of the templates I have in my site.

I then created a folder named com_k2 and inserted the k2 templates files into it, but when I look at "select a template" option in categories there are no options to pick from except the default.
Do you have any suggestions as to what may be wrong here?

Regards,

Brian

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

More
10 years 1 month ago #131360 by JoomlaWorks
Replied by JoomlaWorks on topic Re: item view layout for default k2 template
Within /templates/YOURTEMPLATE/html/com_k2/ you can simply copy the "default" folder and name it whatever you want (e.g. "portfolio"). The new folder will be shown within the drop down lists. The "default" folder being inside your template allows you to override the default K2 output and of course create clones of it to adjust as you wish and assign to whichever categories you want, creating different styles if required for different categories within your site.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum