K2 / Content Construction Kit Setup for Joomla
K2 is a component for advanced content management in Joomla. Adds extra fields to standard articles, attachments, galleries, tags, author profile support. Popular for news portals, portfolios, catalogs.
K2 Installation
Download from getk2.org. Standard installation: Extensions → Manage extensions → Upload file. K2 installs component, modules (mod_k2_content, mod_k2_users) and plugin (plg_search_k2).
Material Types (Categories + Extra Fields Groups)
K2 uses hierarchical categories with ability to attach extra fields groups.
Creating "Real Estate Property" type:
- K2 → Extra Fields Groups → Add group "Real Estate"
- Add fields: Area (Textfield), Rooms (Select), Floor (Textfield), Price (Textfield), Photos (Gallery)
- K2 → Categories → Create "Apartments", "Houses" → in category settings attach "Real Estate" group
Extra Fields Types
- Textfield — single-line text
- Textarea — multi-line
- Select — dropdown
- Multiselect — multiple choice
- Radio — radio buttons
- Checkbox — checkboxes
- Link — URL with text
- CSV — comma-separated list
- Datetime — date and time
- Image — image with title
- Gallery — image gallery
- File — file attachment
- Header — section divider for field grouping
Extra Fields Output in Template
// In item.php template
if (count($this->item->extra_fields)) {
foreach ($this->item->extra_fields as $field) {
if (!$field->value) continue;
echo '<div class="extra-field extra-field--' . $field->name . '">';
echo '<span class="extra-field__label">' . $field->title . ':</span> ';
echo '<span class="extra-field__value">' . $field->value . '</span>';
echo '</div>';
}
}
// Specific field by name
$area = null;
foreach ($this->item->extra_fields as $field) {
if ($field->name === 'area_sqm') {
$area = $field->value;
break;
}
}
K2 vs Standard com_content
K2 adds: Extra Fields without additional components, file attachments, gallery in each item, extended author profile, rating and voting, tags with tag cloud.
For Joomla 4/5 consider alternative — Flexible Custom Fields or standard Custom Fields Joomla 3.7+ (Component → Fields). Built-in Joomla fields don't require K2 and are integrated deeper.
Timeline
K2 setup with 3–5 content types and field groups — 3–5 hours.







