Joomla Tutorials

K2 - the Missing Documentation (Part 2)

March 16, 2010 | Written by Steve Burge

K2 JoomlaThe hottest new extension in Joomla is K2.

Why? Normal Joomla articles provide you with a Title and Body. K2 gives you the flexibility to add much more information. Last week in Part 1 we covered the main administrator parts of K2:

  • Installing K2
  • The K2 dashboard
  • K2 categories
  • K2 fields and field groups
  • K2 items
If you haven't done so already, I highly recommend that you go back and read Part 1 first. This week we're going to focus on the frontend of K2.

K2 Frontend

After Part 1, we should have a several categories, fields and items already inside K2. There are two items that we haven't covered yet, and they really affect the frontend of the site: users and tags.

K2 Users

Each user can have their own profile through K2. That information will appear at the bottom of each article they write, together with details of the other articles they've written. This is Chris, the author of the Canon EOS Rebel article:

Chris Profile Page

  • Administrators: People who are Managers, Administrator or Super Administrators can upload their information by going to Components >> K2 >> Users
  • Front-end users: When you uploaded the original K2 package, it included a module called "K2 Login". Go to Extensions >> Module Manager and publish that module to allow front-end users to manage their profile.

One downside is that you can't create user fields currently, without writing a custom plugin. There is only:

  • Name
  • Email
  • Gender
  • Avatar
  • Website
  • Description
That stands in contrast to a really powerful feature of K2's user system:

K2 User Groups

K2 allows you to have different authors for different categories of your site. If you'd like to have a "Digital Reporter" who submits only review of cameras, you can go to Components >> K2 >> User Groups >> New and create that group from the screen below:

K2 User Groups

So you could create several different levels of users. To give just three simple examples:

  • Contributors: They can add items in particular categories.
  • Copy Editors: They can edit and publish items in particular categories.
  • Senior Editors: They can add, edit, publish and control items in all categories.
If you use the "K2 Login" module, people can submit articles from the front-end without needing to write from the admin.

K2 Tags

K2 also has the option to add keyword tags to items. These are common in blogs and also is in catalogs so people can easily find related products. On your items, it will look like this:

K2 Tags

These tags can be added easily: when you're submitting an item:

entertags

K2 Menu Links

Let's start seeing how our items look. Go to Menus >> Main Menu >> New and click K2. You'll see a screen like this:

K2 Menu Items

  • Item: Link to just one single K2 item.
  • Categories: Link to items form one or more categories at the same time.
  • Tag: You can add keywords to the bottom of each item.
  • User Page (blog): You can have a list of all the items written by one author
  • Latest items: This one explains itself :)

We've been looking at http://demo.getk2.org as an example. If you look there you'll see examples of those different kinds of layouts:

K2 Layout Options

  • "Product" = Item
  • "Blog Entry" = Item
  • "Category Layout"and "Product Categories" = Categories
  • "Latest items" = Latest Items

Video on Creating a Blog with K2

An Overview of K2 - the Missing Documentation (Part 2)

Hopefully we've given you a taster of K2 and how you can use it to create articles with far more information and features.

We've taken you through all the basic aspects of K2. There's enough material for many more tutorials, including how to add video, photos, photo galleries, attachments and much more, but hopefully these two tutorials have been enough for you to catch the K2 bug!


     

    Comments 

     
    # Nicola Kane 2011-07-25 17:38
    Thanks so much - great instructions without too much verbage!
    Cheers
    Nicola
    Reply | Reply with quote | Quote
     
     
    # iowawebco 2011-07-27 14:44
    You're welcome, Nicola! :)

    Kind regards,
    Nick
    Reply | Reply with quote | Quote
     
     
    # Meg 2011-10-19 16:00
    Your title for this page - 'the missing documentation' - is brilliant. Thank you, Dear GOD thank you! I've been pulling my hair out for days trying to figure out how to enable a user blog page. It never occurred to me that I would have to enter the Module section and look for a K2 User Module - I've been working with Joomla for about a month and while I've had good success with components, I still barely understand modules and plugins.
    Reply | Reply with quote | Quote
     
     
    # iowawebco 2011-10-19 16:41
    Hi Meg,

    You're very welcome! :)

    You should become a student at OSTraining and learn from us. We have a lot more inside available to members only :) Check it out training at www.ostraining.com/online

    Kind regards,
    Nick
    Reply | Reply with quote | Quote
     
     
    # Andrea 2011-10-20 16:27
    I have asked in the K2 community forum "where can I find some K2 documentation?" and nobody was able to come out with a reply!

    Thank you for this, it's going to be really helpful.
    Reply | Reply with quote | Quote
     
     
    # iowawebco 2011-10-22 00:10
    You're welcome, Andrea! :) There's more available inside to our students: www.ostraining.com/online
    Reply | Reply with quote | Quote
     
     
    # Bronco 2011-10-21 18:46
    do you have any k2 training on line?
    if yes please let me knoe

    Thanks
    Reply | Reply with quote | Quote
     
     
    # steve 2011-10-21 19:00
    Hi Bronco - yes, we do. This article is here part of that training. More is available via ostraining.com/online
    Reply | Reply with quote | Quote
     
     
    # amrish 2011-12-10 02:11
    Hello there

    i want a K2 slider module for joomla 1.7 where in that i can show the selected category with that image and its intro text in slider
    i also try some slider but didnt work

    plz give some help

    thanks in advance
    Reply | Reply with quote | Quote
     
     
    # iowawebco 2011-12-11 13:00
    Hi amrish,

    You can give lof k2 slideshow a try:
    extensions.joomla.org/.../...

    It should be exactly what you're looking for. hopefully.

    Kind regards,
    Nick
    Reply | Reply with quote | Quote
     
     
    # MikeChoy 2011-12-15 03:29
    Great article...Have been trying for days and almost give up trying to K2 working.

    Thank you for this, it's now working
    Reply | Reply with quote | Quote
     
     
    # iowawebco 2011-12-15 12:24
    You're very welcome, Mike! We have a lot more great time-saving training available to students at OSTraining.com. If you're interested, check out www.ostraining.com/online for more info.

    Kind regards,
    Nick
    Reply | Reply with quote | Quote
     

    Add comment