Keyword

Templating - no com_k2 folder

  • Amanda Lalor
  • Amanda Lalor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #111176 by Amanda Lalor
Templating - no com_k2 folder was created by Amanda Lalor
Hi there,

I was following this getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates in an attempt to beautify the k2 section of the J2.5 website I am helping a friend build.

There isnt a com_k2 folder in the /templates/YOURJOOMLATEMPLATE/html/ of this website.

Is it ok to just go ahead and create one?

I am trying to utilise the blog style layout.

Thank you! Amanda

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

More
11 years 6 months ago #111177 by william white
Replied by william white on topic Re: Templating - no com_k2 folder
yes, create ...html/com_k2
and
...html/com_k2/templates

Place a copy of the default folder from components/com_k2/templates/ there
make a copy of it and rename it to yourtemplatename and edit the files

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

  • Amanda Lalor
  • Amanda Lalor's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #111178 by Amanda Lalor
Replied by Amanda Lalor on topic Re: Templating - no com_k2 folder
Thanks for the quick reply.

Is there somewhere I can refer to on how or what to modify these php files to, to achieve the blog style layout?

BTW I only copied the three files highlighted in article. Im trusting that I dont need the others?
Attachments:

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

More
11 years 6 months ago #111179 by william white
Replied by william white on topic Re: Templating - no com_k2 folder
The best thing to do is to start with item.php, category_item.php, and category.php..
look in the source code for where things are displayed. There are descriptive comments before blocks of code like this


<!-- Date created -->
<!-- Item title -->

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


Powered by Kunena Forum