Menu

Joomla Blog

Tutorials, reviews, case studies and other tips to help website owners and website developers master the Joomla content management system.

K2 Fields

This week we'll be discussing the benefits of K2 once again. Specifically, we'll look at the Extra Fields available with K2 and what you can do with them to improve your site and make some of the work you do a bit easier.

With only a little bit of explanation you can probably see how creating and using fields that don't exist for normal Joomla articles can be useful. Some of the Extra Fields at your disposal include text fields, text areas, drop down selections, radio buttons and searchable labels. When you create these fields and use them in your K2 Items, as articles are called, you have a lot of flexibility over how you create your content and what you display. The major benefit comes when you are building something that either has a lot of repetitive data or requires a set of data like specifications for items in a catalog.

There really are two aspects to this as well. You have the improved display options on the front end, which is very extensible when you get good at templating, and you also have the improved work flow on the back end when creating Items. Let's take a look.

The basic process for adding and using Extra Fields in K2 goes a bit like this:

Create an Extra Field Group

Give it a name that will make sense when you end up grouping the Extra Fields together.

Create a new Category in K2

When you add this Category, you assign the fields by setting one or more Associated Extra Fields Groups from a drop down.

Create new Extra Fields

Determine what data you need for your content and add the fields you will use to the Extra Fields Group you created previously.

Use the Extra Fields in your new K2 Items!

Last time we discussed the situation of writing about "All Things Culinary" and how using K2 to organize your data could be a big help. This week, however, we'll say that you've taken an amazing tropical vacation to Hawaii and fallen in love with "All Things Ukulele". You're riding the wave of explosive interest in this instrument, and you're writing the best blog out there reviewing new and vintage ukes. So to make your life easier, let's set up some Extra Fields.

Add your group name: "Uke Specs"

k2_extra_fields_01

When you add your Category, called simply "Ukuleles", you associate that same group.

k2_extra_fields_02

Then add the Extra Field, or edit it as we are in this case. We'll add a drop down for the type of wood used for the fingerboard. Here's where some of the magic happens. When you are going through your list of ukuleles you probably don't want to have to create that data every time you add a new model. By using a drop down menu, adding the different types of wood that are required, selecting the appropriate data when adding Items in K2 becomes very easy and quick. Think of all of the possibilities with the different types of fields mentioned above. You really can customize your Items and make creating them much less of a chore.

k2_extra_fields_03

When you begin to add new Items, your available Extra Fields are shown after you select the desired Category that you have created and stocked with the fields you wish to use. And here is our drop down with some of the different woods we might use often. We can always go back and add options to the Extra Fields if needed.

k2_extra_fields_04

Whether you create all of your content yourself, you work with a partner or you outsource some of your work, using K2's Extra Fields can help in many ways. You can cut down on repetitive tasks. You can customize your content to a much greater extent than you could with a standard Joomla article, and you can do a much better job of keeping standards up by using pre-determined data for all of your common, reusable items.

This explanation really just scratches the surface of what you can do. There are many other ways to use these fields. For example, you could use searchable labels to link certain details of each model of ukulele, such as type of fingerboard, and then make it possible for users to perform a search on all entries containing those details with a simple click on the label. The options are deep here.

Give this a try. There are a lot of possibilities and creative ways to improve your websites and work habits with K2.

Rate this blog entry:
Review: RokBox
CrosssFit Tustin

Related Posts

 

Comments 4

Jeff Mayland on Saturday, 04 January 2014 15:27

Richard,

You wrote, "When you add this Category, you assign the fields by setting one or more Associated Extra Fields Groups from a drop down."

I do not see a way to add more then one Extra Field Group to a category. Please explain or correct.

0
Richard, You wrote, "When you add this Category, you assign the fields by setting one [b]or more[/b] Associated Extra Fields Groups from a drop down." I do not see a way to add more then one Extra Field Group to a category. Please explain or correct.
Robert Wilson on Tuesday, 21 January 2014 07:12

Hey Jeff,

Yep, this might be just an error here. This was written 2 and a half years ago or so? So, not sure if it was a difference in versions or simply an error in editing.

Either way, thanks for pointing it out and helping us to clarify.

0
Hey Jeff, Yep, this might be just an error here. This was written 2 and a half years ago or so? So, not sure if it was a difference in versions or simply an error in editing. Either way, thanks for pointing it out and helping us to clarify.
Rob Scrivener on Sunday, 08 February 2015 17:31

Hello Jeff

I'm searching for a specific type of functionality for a website I'm considering. To do what I want, it would need to have drop-down menus three deep. That is, the user would hover over an item in a drop-down, that would then present a child set of drop-down menus, and when the user hover's over it, another set of child drop-down menus would appear, from which they would make a selection. Are you able to identify an extension that does this?

Regards

Rob

0
Hello Jeff I'm searching for a specific type of functionality for a website I'm considering. To do what I want, it would need to have drop-down menus three deep. That is, the user would hover over an item in a drop-down, that would then present a child set of drop-down menus, and when the user hover's over it, another set of child drop-down menus would appear, from which they would make a selection. Are you able to identify an extension that does this? Regards Rob
Jeff Mayland on Friday, 06 March 2015 04:33

Rob Scrivener, I assume your question is not related to this post about K2.

It sounds like you want what is referred to as a "mega menu". Basically a drop down menu that follows the nesting of your Joomla > Menu Manager: Menu Items

A mega menu comes with many template frameworks like T3. Here is a link to the docs explaining how to customize the mega menu: http://www.t3-framework.org/documentation/menu-system.html#megamenu-config

Here is an example of the T3 megamenu that sounds like what you want:
https://docs.google.com/a/modernmagic.com/file/d/0ByW6mKRcAxsCZGRlWDVXMElwcDg/edit?usp=drivesdk

0
Rob Scrivener, I assume your question is not related to this post about K2. It sounds like you want what is referred to as a "mega menu". Basically a drop down menu that follows the nesting of your Joomla > Menu Manager: Menu Items A mega menu comes with many template frameworks like T3. Here is a link to the docs explaining how to customize the mega menu: http://www.t3-framework.org/documentation/menu-system.html#megamenu-config Here is an example of the T3 megamenu that sounds like what you want: [img]https://docs.google.com/a/modernmagic.com/file/d/0ByW6mKRcAxsCZGRlWDVXMElwcDg/edit?usp=drivesdk[/img]

Free Joomla TutorialLearn Joomla for free with our 16 lesson, 2 hour course.

Get Started