Article information such as author, hits, article date, article category, and more is displayed when viewing an article and when viewing a list of articles. These details may be turned on or off; most are turned on by default. The control originates in the system configuration (also known as the global setting), which applies to all menu items and articles, which can either adopt (inherit) or override the global setting. This tutorial demonstrates how this inheritance works by focusing on how the Author setting is controlled.

Location of the Author in a list of articles
Location of the Author field in a list of articles

Prerequisites

  • 1 Tutorial Introduction covers where to run your tutorial, and includes the required frontend/backend login and site-viewing tutorials (1.1, 1.2, 1.3).

Setup

Create a New Category

  1. Navigate to Content > Categories and click New. Result: A new category form opens.
    • Title: Sundial Software
  2. Save & Close

Create Two Articles

  1. Navigate to Content > Articles and click New. Result: A new article form opens.
    • Title: Sun Daze Companion
    • Category: Sundial Software
    • Click the Options tab. Observe that Author is set to Use Global (Show), indicating that the author will appear when viewing articles.
  2. Click Save & New.
    • Title: Olympus Solar Calculator
    • Category: Sundial Software
  3. Save & Close

Create a Category Blog Menu Item

The menu item will display our articles in a list. Visitors will then click on one to view an individual article.

  1. Click Menus > Main Menu.
  2. Click New and configure:
    • Title: Sundial Software Blog
    • Menu Item Type: Category Blog
    • Choose a Category: Sundial Software
  3. Save & Close

Steps

Demonstrate Global Inheritance

The articles and menu items normally inherit from the global setting.

  1. Navigate to System > Global Configuration.
  2. Click Articles under Component. Result: The article options appear, including the Author field, set to Show. Note: If it isn't, set it to Show now and save.
  3. View the site and click Sundial Software Blog in the main menu. Result: The author appears in the list of articles, under the heading Written by.
  4. View one of the articles. Result: The author appears here as well.
  5. Switch to the backend and navigate to System > Global Configuration.
  6. Click Articles under Component.
  7. Change the Author setting to Hide and save.
  8. Switch to the frontend and click Sundial Software Blog again. Result: The author no longer appears in the list of articles.
  9. View one of the articles. Result: The author is hidden here as well.

Both the menu item and the articles are using the global setting to show or hide the author.

Override the Global Setting

Switch to the backend and edit the category blog menu item:

  1. Click Menus > Main Menu.
  2. Click Sundial Software Blog.
  3. Under the Options tab, change the Author setting to Show and save.
  4. Switch to the frontend and click Sundial Software Blog again. Result: The author is displayed. Note: The menu item is no longer inheriting from the global configuration.
  5. View one of the articles. Result: The author is shown as well. Note: The article is inheriting its setting from the menu item.

Override the Menu Setting

Switch to the backend and edit one of the articles:

  1. Navigate to Content > Articles.
  2. Click one of the articles to edit it.
  3. Under the Options tab, change the Author setting to Hide and save.
  4. Switch to the frontend and click Sundial Software Blog. Result: The author is shown for both articles in the list — this is the menu setting.
  5. View the articles. Result: One article displays the author while the one just edited does not. Note: The article has overridden the menu setting.

Inherit from the Article

There is one more setting to look at, where the menu item inherits its setting from the article.

  1. Navigate to Content > Articles.
  2. Under the Options tab, set the Author setting to Show in one article and Hide in the other, and save both.
  3. Navigate to Menus > Main Menu.
  4. Click Sundial Software Blog to edit it.
  5. Under the Options tab, change the Author setting to Use Article Settings and save.
  6. Switch to the frontend and click Sundial Software Blog. Result: One article in the list displays the author, while it remains hidden in the other. Note: The menu item is inheriting from the article setting.

Concepts

Inheriting settings from a single point in the system configuration establishes a consistent look across the entire website, and a single point to update.

Overrides provide the means to individualise menus and articles when needed.