Keyword

"Select a Template" (New category setup)

  • Mike C
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 1 month ago #70292 by Mike C
Ok, so I understand that categories in K2 are what define item types because each category will have its own template. The question is, how/where do we develop category templates for K2?

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

More
15 years 1 month ago #70293 by Erebrum
Replied by Erebrum on topic "Select a Template" (New category setup)
Hi ok i didn't tested whole process yet but possibly it would go as follows

1. make new folder in templates - my template - com_k2 etc ... More info about current template placing Here

2. copy all files from default K2 template folder (/components/com_k2/templates/default) in it

3. fire up editor and change custom template files accordingly

4. set actual category to custom template in category parameters

5. also there is a one more step needed for front page to change template - to set template in menu link properties Here

As i sad i got templates to show in template selection, and i quickly changed category template a bit while writing this (just inserting some characters around) and it works. so far so good :P

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

More
14 years 4 months ago #70294 by Alexis Valera
Replied by Alexis Valera on topic "Select a Template" (New category setup)
Where we can find a manual in order we can manage to create a template that can achieve what we want

Whe want to achive something like add some subtibles to ours main titles of the articles so we can manage to put the subtitle in a new extra field

there going to be something like

THE NEW SUBTITLE
The main title of the content
content
other things and plugins

Please

thanks in advance

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

More
13 years 7 months ago #70295 by left19
Replied by left19 on topic "Select a Template" (New category setup)
Doesn't someone sell one of these that just has a structure like this:

<h1>THE NAME OF THE CATEGORY</H1>

Left justify category image

* list item 1

* list item 2

etc

 

The k2 tempaltes are difficult to work with IMHO and I"m a designer.

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


Powered by Kunena Forum