Creating Tabbed Content in K2 Items

Written by  in Tutorials and has been read 6589 times.

Sometime you may need to display data within your content using a tabbed layout form.

This can easily be done using a great, free download from No Number called Tabber.

Once you have downloaded, then install just like any other Joomla! extension. This plugin is enabled during installation.
Please make sure you bookmark their documents pages too, so that you have access to the syntax required, but it so easy using the following code.
Take a look at the plugin in the Plugins Manager as it does have some parameters you can play with. 

{ tab=Tab Title 1 } Your text... { tab=Tab Title 2 } Your text... { /tabs }

Using that code as an example, simply paste that into your K2 item. Please note, when you paste it, it may transfer some formatting from the site, so in your WYSIWYG editor, view the source and paste it their so that it strips any styling. Please also remove the blank space after "{" and before "}".

Let put that in to action.

Tab Title 1

Your text...

Tab Title 2

Your text...

OK, so now you have some tabs in your item, lets push it a stage further and display K2 item content in those tabs.

Again, we are going to use a plugin from No Number, this time, Articles Anywhere.  Installation is as simple as before and again, there are some parameters that can be adjusted, but I have left the default settings in place.

This time, we drop in the Articles Anywhere syntax for K2 Items in place of the text we used before, which is as simple as { article k2:nnn } Please remove the blank space after "{" and before "}" and change nnn to the K2 Item ID number for the item you wish to display. 

K2 Item 1

 New Release - K2 Template Manager 

I am pleased to announce that a new component has today been released in a joint collaboration be...

 Custom read more!  

K2 Item 2

  

Once installed, K2 Template Manager can be accessed from within the K2 extension. No need to go hunting for it amongst the other extensions, as it is located on the far right of the K2 features menu, after the information link.

Go ahead, click on Templates.

templatemanager-dashboard

Welcome to the template manager dashboard.

The primary display is a list of all the K2 templates which are installed in the component or Joomla templates.

One of the cool things, is the use of the Custom CSS. This adds a copy of the default k2.css and places it with the K2 template that has been selected.
You can also export and import a K2 template in this screen too.

k2templatemanager

If you click on one of the installed templates, the next screen will display a list of all the K2 categories and the templates which are currently assigned to it.  This is a very quick way of selecting which categories are assigned a template, no more editing multiple categories.

templatesassigned

 Template manager also lists out the files which are contained within the selected template, which if clicked can be edited. 

k2templatemanager-files

The code editor screen allows you to access the template css and php files, so that they can be edited from the Joomla backend, without the need for 3rd party software or having to set up ftp access to your server files.

k2templatemanager-editor

 So now your all set to manage your K2 templates through Joomla, no more guess work on where to place your template.


.

 

K2 Item 2

  

Installation is just like any other Joomla extension installation. Subscribers will need to have downloaded a copy.

  1. Login to your Joomla Administration
  2. From the main Menu, navigate to Extensions> Install/Uninstall
  3. In the Extension Manager window, click on the Choose File button.
    This will open a pop up window, allowing to find the relevant file on your local drive.
    Additionally, you may store your downloads on your server or paste a link directly to the download file.
    The later will only work if you have an active subscription.
  4. Click either Upload & Install of just Install, depending on which installation option you chose in step 3.
  5. Once installed, you will see the installation confirmation text.

Thats it, installation is now complete, time to check out the features.

 

Now the smart thing is, tab 1 has some additional syntax so that it shows the title,  100 characters of text and then a custom read more.
Full details can be found in the plugin parameters on in the No Number documents. 

{ tab=K2 Item 1 } { article k2:nnn } { title } { text:50 } { readmore:Custom read more! }  { /article }

Thats it all done.

Play and enjoy.

Written on Tuesday, 18 October 2011 18:28 and last modified on Tuesday, 18 October 2011 18:59
Tags Used:
More in this category: « ?tp=1 in Joomla 1.6

Comment subscription

Receive email notification when a new comment is added to this item.

2 comments

  • Comment Link Simon Wells Tuesday, 03 January 2012 21:25 posted by Simon Wells

    If you want to use No Number Tabber, then please feel free to check their site for documentation and examples.

    We have integrated Joomlaworks Tabs and Slides into K2 templates in the past. I would suggest to try that.


  • Comment Link qbin2001 Tuesday, 03 January 2012 20:18 posted by qbin2001

    Great, but... any idea how to itegrate it in template (i'd like to show parts of the page in tabs eg. Comments, Video) on the tabs


Leave a comment

* Indicates required information.
Basic HTML code is allowed.

Simon Wells

Simon Wells

Founder of K2Joom, the original K2 fan site, now providing K2 templates and Extensions.
Simon is also author of Simon Says the official K2 document site.

Website: k2joom.com E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
JoomlaPriase awesome templates and tools
Joomla for iPad
Admin Templates
and Tools
K2Joom Highly Recommends JoomlaBamboo
Joomla Templates
Extensions and
1st Class Service
Joomla WordPress and Drupal Training
World Leading
Open Source
Training

Preferred Payment

paypal-verified

Newsletter Sign Up