K2 Community

Join the network of the powerful content component for Joomla!

K-Brain Joomla! K2 Template

hey Folks,
I decided to publish my custom K2 Template to give something back. Plz, excuse my bad english. For german Translation see the pdf including in the Download.

The template has been constructed on the basis of the original K2 template. I would again like to remind you that I have tailored the template to my needs. I publish this to show what is possible with Joomla! K2.

As I related to the programming is not the brightest, I'd appreciate suggestions and improvements as well as criticism. Feel invited to adapt the template to develop further and objectives for non-commercial use purposes.

The template can be seen live at: brain-style.de

Room for criticism is here or in the comments.


Template - Features:

- Highlight in the category view
- Every article a feature
- Large image in the article (in background)
- 3 extra module positions (loadModule)
- No display of empty fields Extra
- Prepared for Onecsspertemplate plugin
- Prepared for Video Categories

To install the template, please use this instruction.
using onecssperk2template this

Category View

Highlight in the category view

The leading article presents itself differently than the rest. Thus, the most recently added items will receive the necessary attention. In addition to the changed font size and color of the header that appears as the intro text larger and right aligned.

In Category view, the date has got its own DIV and this was divided into two areas. The creation date appear: in a "grungy" calendar.

View Article

Every article a feature

The article view is generated across the entire width. The intro text stands out more strongly on the article and the Extrafieldsr and article information can be found directly in the text and are highlighted by the black box.

Inserted, a background image option, and a most proper for the article view modules intended position.

Large image in the article (in background)

The placeholder for the image displayed on the item page has been removed. The code is now in the background. In the example, the pictures would be inserted in the format 360px × 550px. The width here (360px) build the space (padding) for the intro text.
If you use an Item without Introtext, just width Fulltext, the padding will be cleared.

Extra Modules Positions

All three modules positions were with the Joomla! Cora plugin "loadmodule" implemented.

1. Tag - between Primary and Second div was the place for the Joomla! Internal loadModule plug inserted. This module position mustbe added, if requested, in the templateDetail.xml of the Joomla! Template.

K2_Category_Post_Primary

In the example of these modules is to position a Google AdSense module released.

2.The second module position is located in the right pane of the Category View. For this, the div.itemList was a (float: left) and customized width (width: 520px;). When using the K-brain template that should be adjusted to your needs. The modules position is called K2_Category_Right and must also be placed in the templateDetail.xml of the Joomla! Template.

3.The third module position K2_Item_Subheader is located directly on the item page under the heading.

No display of empty fields Extra

Extra fields which are not filled in are no longer displayed in the article view even though they are published. For existing content, these are obviously visible again.

Prepared for the Onecsspertemplate plugin

The file structure was, in addition to the standard organization adapted. Thus, the K2 template for the plugin OnecssperTemplate by Olivier Nolbert is prepared.

Video Categories

The section for the video display was placed under the picture display, equipped with a float. Thus, the video thumbnail will appear in the Category view, with switched off the image of the text.

index.php?option=com_k2&id=12&lang=de&task=download&...


My special thanks goes to:

JoomlaWorks http://community.getk2.org/profile/joomlaworks
http://www.joomlaworks.gr

Thank you for this great Componente

Olivier Nolbert
http://community.getk2.org/profile/OlivierNolbert
http://www.jiliko.net

Thank you for the Onecss plugin and the extra option to hide empty fields.

Munyah
http://community.getk2.org/profile/munyah

For the implementation of the LoadModule plugin.


greets

Troponin

Tags: brain-style, custom, k-brain, k2, template

Comment

You need to be a member of K2 Community to add comments!

Join K2 Community

Advertisement

Latest Activity

Plz send a link if site is live
2 hours ago
See the k2 menu choices at the bottom - latest from user or categories select the category and set the number of items and it will work
2 hours ago
FidelGonzales added a discussion
I'm having some issues getting my categories to appear properly. The culprit seems to be the following code: . In default form, there is a huge gap on the top of the category page. After removing a few of these, the issue is partially fixed with cer…
2 hours ago
someone better that i may can tell you, try commenting the div class clr's our and see what happens
2 hours ago
Thanks for the reply. Unfortunately I'm not so experienced with Firebug nor CSS. I attached a new image, where one can see more information. Does this help a bit more?
2 hours ago
Whatever is done will modify the core, but will work. How about putting the category id's in a field like the xtra filelds and teach the core to parse them out. Its changing the way things work - not likely to happen unless a module like followeyes…
2 hours ago
I don't think the concept of the single-category per item content structure is a way of thinking that is advanced and, therefore, a reason to change the content construction strategy and our subsequent way of thinking. It is merely a huge limitation…
2 hours ago
2. if you are trying to remove a video from an item in the backend, click on the video tab scroll to the bottom and check delete currrent and save
2 hours ago
Please post a link if the site is live Use firebug to see what there and what needs to be changed
3 hours ago
Also, to skip the extra field you dont want edit in the override item.php and put something like {pseudocode} phpif this->extrafield->name="fieldyouwantto skip" else let the rest of the existing foreach loop run phpendif endfor something like that s…
3 hours ago
Kibekas added a discussion
There is a problem with excess of free space between 'itemListSubCategories' and 'itemList'. It seems to be derving from div class 'itemlistsubcategories' Please see the image attached. Does anyone know how to solve this problem? Via CSS?Thanks!
3 hours ago
you can get the extra fields like this if it suits your needs $custom = $this->item->extra_fields; and then addressing extra fields for the item like echo $custom[1]->value; depending on the position, 0, 1,2,3,4 etc in the array experiment with this…
3 hours ago
Kibekas, Ninja B, Dene Goodwin and 1 more joined K2 Community
3 hours ago
deton and Daito joined JoomlaWorks's group
For K2 translators
3 hours ago
I can translate to Russian
3 hours ago
I have a case right now where I would love to be able to set several categories for one article. For now, it has been solved with the use of tags, and I suspect this is how we will have to use it in the future. It might just be that we are used to…
3 hours ago
Viktoria (and Simon), Did you ever find out how to put one single extra field (not the whole bunch...) a different place than at the bottom of the article? This means we need to have a way to identify this particular field and add the code for it…
3 hours ago
Valentine added a discussion
Greetings to all . So here is what i cant understand1. i Cant login as an admin tru k2 login in frontend form just resets and i see begining of page2. I cant understand how to remove Related videos Any help will be good thanks in advance
3 hours ago
I can translate to German
5 hours ago
Sorry man, I wish I had more time to re-analize. You'll have to tweak things around. Trial and error man.
6 hours ago

© 2010   Created by JoomlaWorks.

Badges  |  Report an Issue  |  Terms of Service