• Sign In
    • Forgot your password?
    • Forgot your username?

K2 | The powerful content extension for Joomla! developed by JoomlaWorks

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
Content management as it should have been in Joomla
extra fields

Display single extra fields anywhere in your K2 content

31 March 2019
Published in Tips & Tricks

To directly output individual extra fields in your K2 overrides, do something like this (e.g. in item.php) to get the extra field name:

echo $this->item->extraFields->EXTRAFIELD_ALIAS_HERE->name;

To get the extra field value you would simply do this: 
echo $this->item->extraFields->EXTRAFIELD_ALIAS_HERE->value;
echo $this->item->extraFields->EXTRAFIELD_ALIAS_HERE->rawValue; // for date type only

Simply replace EXTRAFIELD_ALIAS_HERE with the actual alias of the extra field you wish to output.

In modules, use:
echo $item->extraFields->EXTRAFIELD_ALIAS_HERE->value;
echo $item->extraFields->EXTRAFIELD_ALIAS_HERE->rawValue; // for date type only
More
CMK2Inline

CMK2Inline

12 June 2015
Published in Extensions
CM K2 Inline is a Joomla! component helping you customize K2 component’s back-end item list and edit extra field inline.

K2 is the popular powerful content extension for Joomla with CCK-like (content construction kit) features. Every item of K2 can be extended by extra fields. If the most important part of your K2 content is extra fields then you would find it difficult to modify your K2 items. You need to go to item list, click an item, click Extra Fields tab, modify extra fields, save the item, go back to the list, click an item, and so on... It is also difficult for you to compare the extra field values of your K2 items. You can't open 10 browser tabs to check and compare 10 items.

CMK2Inline is designed to help you on this - manage extra fields in K2 with ease.

Features

  • Show/hide columns in K2 item list.
  • Change ordering of the columns.
  • Add columns for extra fields to the list.
  • Add/edit value of extra fields in-place.
  • Add/edit value of an extra field for many K2 items at once.
  • Use AJAX to save extra fields.
  • Popup notification for the result of AJAX request.
  • Tool to create/delete override layout file right in Joomla! back-end.
  • Support the following extra field’s types:
    • Text field
    • Textarea (Editor is not supported)
    • Drop-down selection
    • Multi-select list
    • Radio buttons (Displayed as drop-down selection to save space)
    • Date

Technical Requirements

  • Joomla! 3.x.x: CM K2 Inline is NOT compatible with Joomla! 1.x.x or 2.x.x, only Joomla! 3.x.x is supported. Please check Joomla! 3’s technical requirements for more information.
  • Bootstrap 2: CM K2 Inline is NOT compatible with Bootstrap 3. Bootstrap 2 is available by default in Joomla! 3.x.x. The default template of Joomla! back-end (Isis) uses Bootstrap 2, so this template is recommended, if you use a custom back-end template, it must support Bootstrap 2.
  • K2: CM K2 Inline was tested on K2 2.6.5, 2.6.6, 2.6.7, 2.6.8 and 2.6.9.
More
JoomReem DataSets for K2

JoomReem DataSets for K2

14 December 2014
Published in Extensions
JoomReem DataSets for K2 will help you create multiple sets of K2 extra fields for the same K2 item, where original K2 only support one extra fields group for a specific item. More

How to create country list dropdown field in K2

09 March 2013
Published in Tips & Tricks
If you need to create a country list in K2 as a dropdown list extra filed, this will take a long time to enter countries one by one in the extra field edit form, this tutorial helps you to create such field in minutes More

Extra field image type as link

19 January 2013
Published in Tips & Tricks
If you have an image type extra field and need to display a link directly to the image you must strip the default code that K2 uses to insert the image into it's foreach loop. You can insert this directly into your item.php override file.

<?php
$var = $this->item->extraFields->Image->value ;    
$var = preg_replace('/<img src="/',"",$var);
$var = preg_replace('/" alt="Image" \>/'," ",$var);
echo '<a href="' . $var . "TextOfLink" . "</a>" ;
?> More
AJAX Search for K2

AJAX Search for K2

26 July 2012
Published in Extensions
AJAX Search for K2 allows you to search contents of the K2 component and makes it possible to filter by multiple categories, by multi-select list extra fields and by creation date. The extension has a beautiful appearance, shows a list of previous results by using AJAX and is highly customizable.

Compatible with Joomla 3.x and 2.5. More
Related Content for K2

Related Content for K2

26 January 2012
Published in Extensions
Related Content for K2 is a Joomla! module for K2 which displays items in the same category as current K2 item.

You can make all the settings via the administration interface of the module:
  • css module suffix class
  • the template to use
  • Related items by Category, Tag, Category or Tag, both
  • Related by specific categories/tags
  • limit the number of items to display
  • display or not the title
  • display or not the text of introducion
  • limit the introductory text to a number of letters
  • display or not the full text
  • limit the full text to a number of letters
  • display article image
  • choose/customize image size
  • choose article image position (left/right)
  • display category link
  • display article creation date
  • display extra fields
  • display a tooltip (on the title) or not
  • limit the number of letters to display in the tooltip
  • display of the link "read more"
  • order the items by creation date/ modification date/ id / hits
  • order direction (ascending/descending)

Compatible with Joomla! 1.5 - 2.5.

More
K2 Extra Fields Filter Module

K2 Filter and Search module

23 October 2011
Published in Extensions
Compatible with Joomla 3.x and the latest K2 version.

This module can filter your K2 content by several extra fields, tags, category, item text and a lot of other fields in the same time. It is very flexible to use.

With the module purchase, you will get one year free support and updates.

Features

  • Display search fields as text field, drop-down select, multi-select, slider, slider with range value select, radio, tag (ability for multiple tags select), category, item title (text and A-Z), item text, item rating, item creation/publish dates;
  • Restrict search to specific category (static by category ID(s) and auto by the category you are viewing);
  • Order search fields; Display search fields in several columns;
  • Order search results by some extrafield value;
  • Display search results in category view (category template);
  • Auto-submit function;
  • Function to allow search only if all the fields are selected;
  • AJAX search results;
  • Chained (dependent) fields (connected fields);
  • Multi-language support.

More
  • Contact us
  • Privacy Policy
  • License
  • K2 Downloads
  • K2 Metrics
  • K2 on GitHub
back to top
Copyright © 2006 - 2025 JoomlaWorks Ltd. All rights reserved. K2 is a joint project by JoomlaWorks & Nuevvo, released under the GNU/GPL license.
Joomla is a registered trademark of Open Source Matters, Inc. K2 is not affiliated with or endorsed by Open Source Matters or the Joomla Project.
designed by Nuevvo