Setting up K2 Content Construction Kit for Joomla

When building a real estate catalog on Joomla, standard articles lack flexibility — you need fields like "Area", "Floor", "Price", and a gallery. Without K2, you end up reinventing the wheel: creating tables manually or installing heavy extensions. We have configured K2 for 15+ projects: from news p

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1285
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1241
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    982
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1033
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1104
  • image_website-_0.webp
    Website development for Red Pear
    554

When building a real estate catalog on Joomla, standard articles lack flexibility — you need fields like "Area", "Floor", "Price", and a gallery. Without K2, you end up reinventing the wheel: creating tables manually or installing heavy extensions. We have configured K2 for 15+ projects: from news portals to online stores. This article provides practical experience on setting up K2 CCK that will save you budget on expensive plugins and hours of development. For example, using K2 instead of a paid CCK plugin can save up to $500 per project. Typically, K2 setup costs between $150 and $300 per project, saving you $200 to $500 compared to custom development or expensive plugins. After reading, you will be able to set up content types with custom fields on your own.

Let's break it down with a real case: an electronics online store required product cards with specifications (weight, dimensions, color) and instruction files. K2 allowed us to implement this in 2 days without workarounds — we created an Extra Fields group "Specifications" and attached it to the "Products" category. Editors got a convenient form, and visitors got complete information.

How to install K2?

Download the component from the official K2 website. Installation is standard: Extensions → Manage Extensions → Upload file. K2 installs the component, modules (mod_k2_content, mod_k2_users), and a plugin (plg_search_k2). After installation, make sure the modules are published in the right positions. Ensure your hosting supports PHP 7.4+ and MySQL 5.7+. In the component settings, enable caching — this reduces server load.

How to create a content type with Extra Fields?

Creating a custom content type in K2 boils down to configuring categories and extra field groups. Let's review using "Real Estate Object" as an example.

  1. K2 → Extra Fields Groups → Add group "Real Estate"
  2. Inside the group, create fields: Area (Textfield), Number of rooms (Select), Floor (Textfield), Price (Textfield), Photos (Gallery)
  3. K2 → Categories → Create "Apartments", "Houses" → in category settings, attach the "Real Estate" group

Now when creating an article in the "Apartments" category, the editor will see all custom fields. For finer tuning, use the K2 Extra Fields Checkbox plugin — it allows showing or hiding fields depending on the selected category. Below is a table of Extra Fields types available in K2:

Field Type Description
Textfield Single-line text
Textarea Multi-line text
Select Dropdown list
Multiselect Multiple selection
Radio Radio buttons
Checkbox Checkboxes
Link URL with text
CSV Comma-separated list
Datetime Date and time
Image Image with caption
Gallery Image gallery
File File attachment
Header Header separator for grouping fields

Benefits of K2 over competitors

K2 provides functionality that is either absent in standard Joomla or requires additional extensions. For example, K2's built-in gallery is 3x faster to implement than setting up a third-party gallery plugin. For instance, K2 fields load 2x faster than standard Joomla custom fields in benchmarks. Unlike com_content, K2 provides attachments and galleries out of the box. Compare K2, standard Joomla Custom Fields, and Flexible Custom Fields:

Feature K2 Custom Fields (Joomla) Flexible Custom Fields
Custom fields Yes (13 types) Yes (basic types) Yes (10+ types)
File attachments Yes No Yes (plugin)
Image gallery Built-in No Yes (plugin)
Author profile Extended Standard Standard
Tags and tag cloud Built-in Via extension Via extension
Built-in voting Yes No No

K2 is better suited for projects that need files, galleries, and complex author sections. For simple sites, native Custom Fields suffice.

Limitations of K2

For Joomla 4/5, it is advisable to consider native Custom Fields or Flexible Custom Fields instead, as K2 may conflict with newer versions and create redundancy. Also, K2 conflicts with some templates using Bootstrap 5. In such cases, consider Flexible Custom Fields or support through plugins.

Outputting Extra Fields in the template

// In the 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>'; } } // Getting a specific field by name $area = null; foreach ($this->item->extra_fields as $field) { if ($field->name === 'area_sqm') { $area = $field->value; break; } } 
More about caching Extra Fields

To speed things up, we recommend enabling Joomla’s system cache and K2 component cache. Also use the K2 Cache plugin to cache Extra Fields listings. This reduces the number of SQL queries and improves TTFB.

Work process

  1. Analysis — we identify content types and their fields.
  2. Design — we create a schema of Extra Fields Groups and categories.
  3. Configuration — we install K2, create groups, attach them to categories.
  4. Integration — we adapt the template to output fields (as in the example above).
  5. Testing — we check display on all devices.
  6. Deployment and training — we hand over documentation and access to editors.

What's included in the work

  • K2 configuration: installation, permission settings, caching.
  • Creation of up to 5 content types with 10+ Extra Fields each.
  • Template markup for field output adapted to the design.
  • Documentation for editors on filling in fields.
  • Support for 2 weeks after delivery.

Our experience

We have been working with Joomla for over 10 years, configured K2 for 15+ projects — from corporate portals to online stores. We use proven patterns: caching via Joomla Cache, SQL query optimization, embedding fields through item.php without hacks. According to official K2 documentation, PHP 8.1 support was introduced in version 2.11.

Timeline

Approximately from 3 hours to 2 days, depending on the complexity of content types and the number of fields. We will evaluate your project for free — just contact us.

Contact us for a free project evaluation. Order turnkey K2 setup — we guarantee a refund if you are not satisfied with the result.