- Posts: 29
COMMUNITY FORUM
Content Templates (Not K2 Templates)
- Doug Robertson
-
Topic Author
- Offline
- Junior Member
Less
More
11 years 2 months ago #126434
by Doug Robertson
Content Templates (Not K2 Templates) was created by Doug Robertson
Is it possible to have a default template of Content associated with a K2 category? This is not a K2 layout template, but actual default content inside the editor.
The way I envision this working is that when a K2 Category is selected it automatically populates the editor with specific content from a template you would assign to the category. This content would then be edited with specific information for the article you are creating.
We do a large number of posts with essentially the same structure and content, but specific details added or changed on each article. I am looking for a way to improve the efficiency of creating these articles and improving consistency.
Currently we have a word document that is the template for each article. Parts are changed and filled in then the article if copied and posted into K2. This is OK but it has issues with the Word to K2 copy and would be far more efficient if it was just done inside K2 itself.
Does anyone know of a way of doing this? A plug in or extension possibly?
The way I envision this working is that when a K2 Category is selected it automatically populates the editor with specific content from a template you would assign to the category. This content would then be edited with specific information for the article you are creating.
We do a large number of posts with essentially the same structure and content, but specific details added or changed on each article. I am looking for a way to improve the efficiency of creating these articles and improving consistency.
Currently we have a word document that is the template for each article. Parts are changed and filled in then the article if copied and posted into K2. This is OK but it has issues with the Word to K2 copy and would be far more efficient if it was just done inside K2 itself.
Does anyone know of a way of doing this? A plug in or extension possibly?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 2 months ago #126435
by Lefteris
Replied by Lefteris on topic Re: Content Templates (Not K2 Templates)
Hi. I am not aware of an extension doing this, but you can try to use extra fields. An extra field of type editor can have default values when creating an item.
Please Log in or Create an account to join the conversation.
- Doug Robertson
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 29
11 years 2 months ago #126436
by Doug Robertson
Replied by Doug Robertson on topic Re: Content Templates (Not K2 Templates)
That is an interesting idea. I would need to figure out how to move that directly into the content, but it might work.
Thanks,
Doug
Thanks,
Doug
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 2 months ago #126437
by Lefteris
Replied by Lefteris on topic Re: Content Templates (Not K2 Templates)
Extra fields are rendered automatically in front-end. You can also render an extra field by it's alias like:
<?php
echo $this->item->extraFields->EXTRAFIELDALIASHERE->name;
echo $this->item->extraFields->EXTRAFIELDALIASHERE->value ;
?>
Please Log in or Create an account to join the conversation.