Joomla - K2 Generator

In this article

⚠️ Note: This generator is only available in the Pro version.

With this dynamic slide generator you can show the contents of your K2 items.

Tutorial

1
Creating a new dynamic slide

To get started, go to any Slider Settings page and add a new dynamic slide. Find K2 in the list.

2
Configuring the generator

Set up your generator. Choose the settings you want. Popular options you probably want to configure: category where your content will be pulled from, the number of slides you want to have, the ordering of the content.

You can also click on the View Records button to see the data you'll be creating your slide with.

When you're done, click on Add.

3
Editing the dynamic slide

After you saved your generator, you'll be redirected to the Slide Editor to set up the look of your slide. You can create your content by using variables.

Not sure what are the variables or how to use them? Learn how to work with variables.

Configuration

You can use these options to set what you want your generator to show.

Filter

Categories

You can select the categories from where you want the items.

Tags

You can select tags to filter your items from the selected categories.

Featured

You can choose to show only the featured, not featured or all items.

User id

You can write one user's id in here, and only those items will be in your slider, which were created by him.

Language filter

You can filter out the items based on the language. Not sure what language filter to use? Check out the language filter list.

Item ID

K2 items can show up on any pages, because that is how Joomla works, so your item's link can be as many links, as many menu items you have in your website. To make Joomla choose one of your menu items, you can give an Item ID, which will connect your item link to that page. This can be useful, when you want one of your menu items to be active, when you go to the link the url variable will lead. Also your different pages have different modules on them, so with the Item ID you will specify which modules will show up on this item page too. You see your pages' Item ID-s, if you turn off the SEO links in the System → Global Configuration → Search Engine Friendly URLs, then you will see it in the links of your pages in the frontend. If you leave the Item ID on 0, that will be the base Item ID, which is usually your Homepage. Learn more about the itemid.

Date format, Time format

You can use the format options, which are available for the PHP date function.

Order

Field

The field which decides the ordering of your articles.

  • Title
  • Category title
  • User name
  • Featured
  • Ordering
  • Hits
  • Creation time
  • Modification time
Order

The order direction.

  • Ascending
  • Descending

Generator Settings

Learn about the Generator Settings at the Generator Settings documentation.

Variables

These are the available variables you can use to build your dynamic slide content in the Slide Editor.

Not sure what are the variables or how to use them? Learn how to work with variables.

  • title The title of the item.
  • description The content of the item.
  • thumbnail The S size image of the item.
  • image The XL size image of the item.
  • url Url to the item.
  • category_title The title of the item's category.
  • category_url Url to the item's category.
  • alias The alias of the item.
  • id The id of the item.
  • category_id The id of the item's category.
  • created_by_alias The name of the item's author.
  • hits The number of hits on the item.
  • image_caption The Item image caption on the item's image.
  • image_credits The Item image credits on the item's image.
  • created_date The date of the item's creation with the format given at the Date format. The Joomla top admin menu's System -> Global Configuration -> Server -> Website Time Zone value is used for the offset.
  • created_time The time of the item's creation with the format given at the Time format. The Joomla top admin menu's System -> Global Configuration -> Server -> Website Time Zone value is used for the offset.
  • extraX Extra fields of the item.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.