Article Category tabs
An Article Category item lists the articles of one or more categories in one tab.
Set it up
- In Components > JoomTabs > Items, click New.
- Type a Name and choose the Type Article Category.
- In Category/Categories, pick one or more categories.
- Choose the Group.
- Set the list on the Article Category Options tab and the look of each article on the Article Options tab, then save.
Only articles that are published, inside their publishing dates and allowed for the visitor's access level are listed.
How the articles are shown
Articles Display decides the layout inside the tab:
| Value | Result |
|---|---|
| Accordion - First out (initially) | An inner accordion. Each article has a title bar, and the first article is open when the page loads. This is the default. |
| Accordion - All in (initially) | The same accordion with all articles closed. |
| No accordion - Articles in columns | All articles are open, side by side in the number of columns you set. |
Clicking the title bar of an article opens it and closes the one that was open. Each article shows its image, intro text, read more link, author and category as set on the Article Options tab. See Single Article tabs for those fields.
Article Category Options
| Field | What it does | Global default |
|---|---|---|
| Articles Display | The layout, see above. | Accordion - First out |
| Tags | Only articles with at least one of these tags. | none |
| Articles Columns | The number of columns for No accordion - Articles in columns. | 1 |
| Articles Space | The space between columns, in percent of the width. | 0 |
| Articles Limit | The maximum number of articles. Empty means no limit. | empty |
| Max. Category Levels | How many levels to include, counted from the chosen categories. 1 means the chosen categories only, 2 adds their direct subcategories. | 1 |
| Articles Min. Date | Only articles created on or after this date. | empty |
| Articles Max. Date | Only articles created on or before this date. | empty |
| Articles From Last X Days | Only articles created in the last number of days. | empty |
| Featured Only | Yes lists featured articles only. This field is on the item only. | No |
| Articles Ordering | Ordering, Date created, Date published, Title, Hits or Random. | Ordering |
| Articles Ordering Direction | Ascending or Descending. Not used with Random. | Ascending |
Articles Columns and Articles Space show only when Articles Display is No accordion - Articles in columns.
Articles with the same ordering value are sorted by title.
Long titles
The titles in the inner accordion are cut to one line by default. To show long titles in full, set Truncate Titles to No in the options, the menu item or the module.
Scroll to the open article
With Scroll To Accordion Item set to Article Category Accordion Only or Both, the page scrolls to the article the visitor opened. This helps with long articles.