• 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
K2 brings the good parts from WordPress & Drupal into Joomla

Items filtered by date: December 1119

Monday, 03 February 2020 10:14

Sj Cool Slider for K2

Sj Cool Slider for K2
SJ Cool Slider for K2 - Awesome responsive Joomla extension for K2 component. The module comes with the ability of displaying K2 entries in a smooth motion of slide and flexibility of navigation. This module can display the item's images or videos with full information such as: Title, Short Description, Created Date, Vote and Read More Link which are got from K2. This module should be placed on a highlight website position to take the best effect and it surely matches with many current template styles.
Published in Extensions
Read more...
Monday, 03 February 2020 10:03

Sj Grid Slider For K2

Sj Grid Slider For K2
SJ Grid Slider for K2 - Responsive Joomla 3.x module, has been released with K2 component supported... Let's make your website more impressive with our beautiful design.

Within a single area of web page, SJ Grid Slider for K2 should be placed on highlighted position to make itself becomes more powerful. Along with variety of professional effects for displaying items on the frontpage, attracting more visitors has become easier than ever. Moreover, the aim of reducing the square of needed information which will be showing and providing a quick overview of items to proper audiences, every two columns with 2 rows, there's one row to be shown on each slide. You can totally control how many items to show on each slide, it depends on you.

Especially, this module has full responsive layout and adapts perfectly for all device resolutions. In addition, dozens of features and effects are included, parameters can be configured in the back-end, you can totally set up any item on your website with images, titles, brief descriptions and detail button... as your wish.

# Main Features 1. Support Responsive Layout 2. Support all browsers (IE+9, FireFox, Chrome, Opera, Safari, ...) 3. Support to open link in Same Window, New Window, and Popup Window 4. Allow to set the number of columns for devices that have different screen widths 5. Allow to choose K2 Category and control Category Depth 6. Support to control showing number of items 7. Sort item order by: Most popular, Highest Rate, Most comment, Latest Modified,  ID Descending, ID Accending... 8. Allow to control Title character, Introtext, Read More Text 9. Show or hide the next button and the previous button 10. Allow to get images from K2 Image, Description, and Extend Folder 11. Support many modes for resizing images 12. Allow to change width/height of images from Extend folder 13. Support to increase or decrease the speed of each slide 14. Support Autoplay/Stop when hover/Scroll per page/Mouse Events/Touch Events 15. Support many slider's effects 16. Support Multi-Language 17. Multi-module in the same page 18. Support to add content at the top of module and the end of module 19. Support caching to make your website loads faster 20. Prevent the conflict between the module with other modules
Published in Extensions
Read more...
Wednesday, 29 January 2020 12:49

Dégagée

Dégagée

Dégagée is a creative agency established in Dachau (Germany) in 2007 by Florian and Denise Malecki. The firm specializes in modern design & development for web/print and its name is derived from the French adjective which means clear, free, informal.

Published in Showcase
Read more...
Wednesday, 29 January 2020 12:45

Fudzilla

Fudzilla

Fudzilla is an online information portal that features news, reviews, and articles related to technology.

Published in Showcase
Read more...
Wednesday, 29 January 2020 12:41

Universidad Rey Juan Carlos (King Juan Carlos University)

Universidad Rey Juan Carlos (King Juan Carlos University)

King Juan Carlos University (Spanish: Universidad Rey Juan Carlos, URJC) is a Spanish public research university located in the southern area of the Community of Madrid (Spain), with five campuses at Móstoles, Alcorcón, Vicálvaro, Aranjuez and Fuenlabrada.

With 44.916 students, it is the second-biggest public university in the Community of Madrid, behind the historical Universidad Complutense. URJC is one of eight universities in the Community of Madrid, and it is the second-newest university in the community.

Published in Showcase
Read more...
Monday, 27 January 2020 14:43

Extending K2's Google Structured Data output to support additional content types

Extending K2's Google Structured Data output to support additional content types

K2 supports Google Structured Data (GSD) since version 2.10.x (in the item view). However it does so for the most basic content types of GSD: article, news article & blog post

In the K2 component's Settings you'll notice that 6 more content types are listed there for product, event, video, course, movie and recipe. However these additional content types require data to be output that are not standard in K2, e.g. the start and end dates for an event. Usually K2 integrators will create these as extra fields and display them to one or more K2 categories.

If you've done that step already, then extending K2's GSD output to support additional content types is not hard.

Here are the steps to do so for the "event" content type...

0. Upgrade to K2 v2.10.3 (dev) from https://getk2.org/downloads/?f=K2_Development_Release.zip - this is required to be able to get the raw URL from a "link" type extra field. This step will not be necessary once K2 v2.10.3 is officially released.

1. Create an override for item.php to apply our GSD code for event content types. Copy the file /components/com_k2/templates/default/item.php into /templates/YOUR_TEMPLATE/html/com_k2/events/ (create the additional folders after /templates/YOUR_TEMPLATE/html/). This will only override the item view. If you want to override the category listing as well (for templating reasons), just copy all the files in /components/com_k2/templates/default/ into /templates/YOUR_TEMPLATE/html/com_k2/events/. More info on overriding K2 templates can be found here: https://getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates

2. Create a new K2 Extra Fields Group and call it "Events".

3. Create a K2 Category and also call it "Events". Make sure that the new "events" sub-template (created on step 1) as well as the "Events" extra fields group (created on step 2) are both selected. 

4. Now create extra fields in K2 for each of the GSD data you wish to add. According to https://developers.google.com/search/docs/data-types/event the bare minimum for a GSD event type are "location" (object), "name" (we can use the K2 item's title here), "startDate" and optionally "endDate" and "offers" (object). The GSD properties "description" and "image" already come with default K2 GSD. For any object element referenced, you'll have to create an extra field for each of its properties. So for "location" and given that GSD guidelines reference this:

"location": { "@type": "Place", "name": "Snickerpark Stadium", "address": { "@type": "PostalAddress", "streetAddress": "100 West Snickerpark Dr", "addressLocality": "Snickertown", "postalCode": "19019", "addressRegion": "PA", "addressCountry": "US" } }

...you would need to add the following ("text" type) extra fields:
- Location Name (with extra field alias 'e_loc_name')
- Location Address (with extra field alias 'e_loc_addr')
- Location Town/City (with extra field alias 'e_loc_city')
- Location Postal Code (with extra field alias 'e_loc_pc')
- Location State/Province (with extra field alias 'e_loc_state')
- Location Country (with extra field alias 'e_loc_country')

Additionally, for the rest of the fields
- Start Date ("date" type extra field and alias 'e_start_date')
- End Date ("date" type extra field and alias 'e_end_date')
- Ticket Price ("text" type extra field and alias 'e_ticket_price')
- Ticket Purchase URL ("link" type extra field and alias 'e_ticket_link')

Make sure the extra field "alias" is inserted exactly as stated in each line above (but without the quotes). This step is important as we will fetch each extra field separately by using this alias.

6. You will now fetch each of these extra fields separately (as described here as well https://getk2.org/documentation/tips-a-tricks/display-single-extra-fields-anywhere-in-your-k2-content) and build your new GSD properties.

Your default K2 GSD look like this: https://jmp.sh/gmcOnu3 (or just do a view source on https://getk2.org/blog/k2-v2102-released-now-with-a-100-mobile-friendly-backend-user-interface).

We will change and extend these using the following PHP code added in your item.php override, right after the "defined('_JEXEC') or die;" part:

// Get current GSD $getItemGSD = $this->params->get('itemGoogleStructuredData'); // Search and extend/replace GSD $document = JFactory::getDocument(); foreach ($document->_script as $type => $script) { if ($type == 'application/ld+json' && $script == $getItemGSD) { // Remove current GSD from the unset($document->_script['application/ld+json']); $itemGSD = json_decode($getItemGSD); // Remove any default K2 GSD properties we don't want for the GSD "event" content type unset($itemGSD->articleBody); unset($itemGSD->articleSection); unset($itemGSD->author); unset($itemGSD->dateModified); unset($itemGSD->datePublished); unset($itemGSD->headline); unset($itemGSD->keywords); unset($itemGSD->publisher); // Append new GSD data as object properties to '$itemGSD' $itemGSD->location = new stdClass; $itemGSD->location->{'@type'} = 'Place'; $itemGSD->location->name = $this->item->extraFields->e_loc_name->value; $itemGSD->location->address = new stdClass; $itemGSD->location->address->{'@type'} = 'PostalAddress'; $itemGSD->location->address->streetAddress = $this->item->extraFields->e_loc_addr->value; $itemGSD->location->address->addressLocality = $this->item->extraFields->e_loc_city->value; $itemGSD->location->address->postalCode = $this->item->extraFields->e_loc_pc->value; $itemGSD->location->address->addressRegion = $this->item->extraFields->e_loc_state->value; $itemGSD->location->address->addressCountry = $this->item->extraFields->e_loc_state->value; $itemGSD->name = $this->item->title; $itemGSD->startDate = $this->item->extraFields->e_start_date->value; $itemGSD->endDate = $this->item->extraFields->e_end_date->value; $itemGSD->offers = new stdClass; $itemGSD->offers->{'@type'} = 'Offer'; $itemGSD->offers->price = $this->item->extraFields->e_ticket_price->value; $itemGSD->offers->priceCurrency = 'USD'; // Use EUR or other currency here based on your needs $itemGSD->offers->url = $this->item->extraFields->e_ticket_link->rawValue; // Re-insert GSD data with new additions $itemGSD = json_encode($itemGSD, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); $document->addScriptDeclaration($itemGSD, 'application/ld+json'); } }

7. Now start filling up the event data in the K2 items' extra fields of yours "Events" category.

In the end you'll see something like this on each event K2 item's page source: https://jmp.sh/qUvDXud (wherever you see "null" is where I just didn't add data for these demo purposes).

8. Finally test one of your K2 items on: https://search.google.com/structured-data/testing-tool - this tool will tell you if you need to change anything or if some property is missing.

And you're ready!

The code above will work on all Joomla versions that K2 supports by default.

Published in Tutorials
Read more...
Tuesday, 17 December 2019 11:54

PunkMedia

PunkMedia

A media production company in the Netherlands run by Henk-Jan Winkeldermaat.

Published in Showcase
Read more...
Tuesday, 17 December 2019 10:56

Green Real Estate Agency

Green Real Estate Agency

Whether you're a buyer, seller, renter or landlord, our purpose is to create an experience that's truly different from any other agency.

For us, caring goes without saying. We've always believed that if we created an agency where truly caring and passionate people wanted to work, it would create a culture where our team would go above and beyond.

Published in Showcase
Read more...
Tuesday, 17 December 2019 10:43

Utah Arts Festival

Utah Arts Festival

The mission of the Utah Arts Festival is to promote the arts and enhance the quality of life in Utah through the production of an annual outdoor, multi-disciplinary event in downtown Salt Lake City.

We strive to maintain the highest artistic quality in our production and programming, represent excellence among a range of artistic mediums, and promote an appreciation for fine art while encouraging innovation in the field, and supporting non-traditional, contemporary works.

Published in Showcase
Read more...
Tuesday, 17 December 2019 10:26

Underground Press

Underground Press

Underground Press covers a variety of music genres - from Rock, Metal, Blues Rock, Hip-hop, Jazz, Folk Rock, and much more - featuring reviews and interviews on your favourite artists and keeping you up to date on the latest events in and around South Africa.

Having interviewed local and international musicians, such as Dani Filth of Cradle of Filth, Chris van der Walt of Black Cat Bones, Boargazm and Vulvodynia, Path P and Neil Breytenbach of CANTREL, popular SA band Prime Circle and movie producers Patrick and George Garcia - we keep you in-the-know!

Published in Showcase
Read more...
Previous12345678910Next Page 3 of 40
Submit your extensions
for K2
to the K2 Extensions Directory

Categories

  • Extensions
  • Translations

Recently Updated

  • 01 Dec 2021 RAXO All-mode K2
  • 01 Dec 2021 RAXO Related K2 Items
  • 02 Nov 2021 RAXO Insert Position
  • 12 Oct 2021 4SEO all-in-one SEO extension
  • 26 Mar 2021 Econa
Advertisement
  • 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