In the previous chapter, we had a look at the backend application of Joomla, introduced the dashboard, and checked the components included in the standard setup of the CMS.
We’ll now look at the central functionalities of the application; the features dedicated to content management. We’ll see how to structure and manage content within Joomla, comparing the content handling features to other major CMSes.
We’ll also have a look at Categories, Featured Articles, blog functionalities, and the Media Manager.
After reading this chapter, you will be able to do the following:
Articles are the basic units of content in Joomla. An article is a piece of content that might include text, HTML code, images, or media that links to other content. Think about a news website: every news story is an article in Joomla, or if you think about a blog, every blog post is an article in Joomla.
Articles have a title, content, and should be assigned to a category. If you do not define any custom categories, there is always a default category called Uncategorized.
In the upcoming sections, we will see how to create an article and the features offered by the integrated editor.
Articles can be inserted into a website either through the backend or the frontend of Joomla.
Both provide an editor that simplifies the content creation process, supplying a What You See Is What You Get (WYSIWYG) visual experience. This allows website authors and administrators to create HTML content without having to directly type HTML code.
Figure 2.1 – New article button
Note
There are multiple ways to create new articles. You can also create a new article by clicking the + symbol near Articles from the Content Dashboard menu item or the Content menu item in the left sidebar menu.
Figure 2.2 – Creating a new article
At the top of the screen, we have the toolbar that hosts the action buttons. These buttons will allow you to save your article, cancel and go back to the previous screen, open the inline help, or check the support pages.
The first field is Title, which allows you to specify the title of the article. This can be any short sentence that describes the content of your article.
The second field is Alias. The content of this field is used to build the URL of the article page, once published. This field should be filled with an SEO-oriented slug that should not include white spaces or special characters (for example, if your article is named Title of my article, Alias should be something such as title-of-my-article).
After these fields there are some tabs, the first and most important one is the Content tab.
The Content tab, as the name suggests, is dedicated to the content of the article. The central part of this screen shows a text editor box in which you can insert the content of your article. The editor grants an MS Word-like experience, with a simplified user interface and classic text-editing controls and buttons.
The editor offers more controls and functionalities that can be enabled by clicking on the … button.
Figure 2.3 – Full editor toolbar
Here, you have all the commonly used features to insert and style rich text: bold, italics, underlined, font size, font style, paragraph style, tables, and much more.
It’s also possible to disable the WYSISYG editor and directly type the HTML code in to the article editing window. To disable the editor, just click on the Toggle Editor button placed under the editing window.
As you can see in Figure 2.2, the right sidebar includes the following fields:
One of these fields, Featured, has some significance on how and where the article appears. Let’s look into this in detail.
As seen in Figure 2.2, one of the options that could be actioned for the article is the Featured status. This option allows you to highlight the article and include it in a specific list of articles that are featured.
There is a specific menu item that is called Featured Articles, which shows all the articles that are featured and is generally used to build the home page of a website.
Joomla also allows you to define a period for which the article should be featured. This is useful when you want to highlight a specific article for a limited time. This, and other settings, can be configured in the Publishing tab of the article creation/editing view, which we will explore in the next section.
Let’s move on to the second tab of the editing screen, Images and Links.
On this screen, you can enrich your article by adding images and links to it. There are two types of images that can be added to an article: Intro Image and Full Article image.
Intro Image is the image that is shown with the introduction of the article (the part before Read More). It is generally visible when you have a blog layout or a category layout.
The Full Article image is shown when you open the article page, that is, on the page where the full content of the article is visible.
Figure 2.4 – Intro Image options
For each of the images, you can specify several options as you can see in Figure 2.4. This includes Image Description, which is the alternative text in the HTML markup, a Caption box to add a caption that is visible below the image, and Image Class, which is the CSS class that should be used to display the image on a public website.
Images can be selected from the image folders of the website or easily uploaded from your computer.
On the same screen, you have also the opportunity to add links to your article. They should be used to add some references to online resources and, depending on your frontend templates, they are displayed on the public website as links to the article. For each of the links, you can specify the target URL, the anchor text, and the browser target window.
Once the article is ready to be saved, you can click on one of the following buttons in the toolbar (as seen earlier, in Figure 2.2):
With this, we’ve seen how to create and save our articles. Let’s now explore all the options to publish and optimize an article.
The Publishing tab is divided into two main parts. The left one is related to the Publishing settings, and the right one is dedicated to Metadata and SEO options.
Figure 2.5 – The Publishing settings
Let’s analyze the options available on the Publishing screen (Figure 2.5):
The right side of the screen, as mentioned earlier, shows options oriented to the SEO of the website, as seen in Figure 2.6.
Figure 2.6 – Article SEO options
These settings will allow you to set some important options that affect the SEO of the article:
Thanks to all the settings seen in this paragraph, you can enrich the HTML markup of your article, optimize the article for search engines, and automate the publication of your content. In the following section, we’ll explore the Options tab.
The next tab on the article editing screen is the Options tab, which supplies many settings to customize the appearance and layout of an article.
Options are shown in separate groups: Layout, Category, Author, Date, and Options. Let’s explore each of them.
The settings in this group allow you to customize the layout of the article and offer a few options to select from, as shown in Figure 2.7.
Figure 2.7 – Article options – Layout
These options enable you to choose a specific layout for the article. This is useful if you have overrides (which will be covered in Chapter 13) for your template and to decide whether or not to show the title of the article, the title with a link, the tags associated with the article, and the introduction text. You can also choose whether or not to show the box with the article details (including author, publishing date, category, and so on) and in which position.
Note
Intro Text is the content of the article that is placed before Read More. Read More is an interruption of the content of the article that can be placed in the article to separate the introductory part of the article from the rest of the article. It’s generally used on news websites and in blog layouts to show the summary of the article in a multiple-article view.
Next, let’s take a look at the Category group.
The settings in this group allow administrators to choose whether or not to show information about the category next to the article.
Figure 2.8 – Article options – Category
If you enable the Link Category option, there will be a link to the Category view directly in the article details box, allowing your website visitors to navigate to the list of articles in the same category.
There are only a couple of options to choose from in this group, as you can see in the following figure:
Figure 2.9 – Article options – Author
The Author group holds controls that allow the administrator to choose whether to show the author’s name next to the article and whether to link the name of the author to a contact page.
The controls included in the Date group allow the administrator to choose whether to show the dates of the article or not.
Figure 2.10 - Article options – Date
These dates are the Creation date, Modification date, and Publishing date. They are shown in the article details box and the appearance is controlled by the template in use.
The last group of options, as shown in Figure 2.11, allows the administrator to show some extra details of the article.
Figure 2.11 – Article options – Options
These include Navigation, which shows the previous and next buttons used to navigate between articles of the same category, the hits received by the article, and Unauthorised Links. You can also customize Read More Text and Browser Page Title, shown in the browser tab.
As you might have noticed, for many of the options available, the field is populated with the Use Global value. That is because you can set these settings globally for your articles directly in the configuration of the Articles component. This way, you do not have to set the configuration specifically for each article.
You can access the configuration of the Articles component by clicking on the Options button in the toolbar when the list of articles is opened.
With this, we have a full understanding of the article creation options and settings, and we can successfully publish our articles. We will not cover the Permissions tab as we will explore the Access Control List (ACL) and permissions in Chapter 6. The settings in the Configure Edit Screen tab allow you to change the appearance of the page in which you edit the article.
When creating articles, there is a frequent need to add supporting images and media content (videos, animations, and more). This can be easily done from the Media section in the article editing screen, which allows you to upload your media files. In addition, sometimes you need to check the media files that you uploaded to your site and perform certain basic operations on them. To do so, Joomla offers the Media Manager, which we will explore in the next section.
The Media Manager is one of the features rebuilt for Joomla 4 and includes many functionalities to load multimedia files and edit them directly online. This has simplified the publishing workflow for website administrators and editors.
The Media Manager is accessible from the Media button on Home Dashboard or from the Media menu item under the Content menu in the sidebar.
By default, the component shows a preview of images loaded in the main images folder (generally it’s the folder named images placed under public_html), as shown in Figure 2.12.
Figure 2.12 – The Media Manager
From this page, you can also navigate through the subfolders holding media files (images, videos, and animations), create new subfolders, and upload media files.
The Media Manager also allows you to perform several operations on the uploaded files. When you select media, you can see the available commands.
Figure 2.13 – Media Manager commands
In Figure 2.13, we can see a number of icons that help perform specific actions. Let us see what each one of them does:
In the next section, we will explore the tools to edit media files online.
The new Media Manager includes some tools to perform basic editing operations directly online, without having to download the file and use graphics software such as Photoshop or GIMP. Let us take a look at the various features offered by Media Manager.
The first of the features included allows you to crop an image, set up the quality of the resulting image as a percentage, and define certain parameters to crop the image:
This feature is useful when you want to crop an image or keep just a part of it, helping you avoid loading huge images and increasing the weight of your web page.
The second editing feature included in the Media Manager allows you to resize an image, scaling it to the desired size. Again, you can configure some parameters to perform the action:
The resize feature is very useful to ensure images have the proper size for your website.
The last tool included in the Media Manager allows you to rotate images. You can set the quality of the resulting image and the angle of rotation. The tool provides some default angles: 0°, 90°, 180°, and 270°.
With these basic tools, you can prepare and optimize your images directly on your websites, without the need for any external software.
Let’s now understand how to organize articles through categories.
It’s important to know more about categories. Categories can be considered as the folders in which articles are classified and stored.
Each category can have an unlimited number of nested categories, allowing website administrators to create a structure that best fits their needs and accommodates complex website nesting levels.
Each article, as mentioned earlier in this chapter, must be assigned to a category. By default, Joomla supplies an Uncategorised category to hold articles. Website administrators can rename it or create any desired category.
It’s recommended to plan the structure of the website, prior to adding content, so that you can create all the needed categories and nest them, as it’s more convenient for the site structure. Categories are also used to build SEO-oriented navigation paths within the website, thanks to the category aliases included in the URLs of the generated pages.
Categories can be also used to handle different sections of the website, with access to resources differentiated by user groups, thanks to the permission management features included in Joomla. We will discuss more about permissions in Chapter 6 of this book.
Let us consider a sample scenario where you are building a website to hold your family recipes. A simple category structure could be as follows:
A structure like the one mentioned in the scenario would allow you to categorize your content in a meaningful way and let your users find the recipes easily.
Categories are a common pattern in Joomla. In fact, other components – either built-in or third-party – integrate the category management system.
With this, we’re done looking at the basics of content management in Joomla. Let’s quickly explore the differences between Joomla and WordPress.
Now that we have a clear understanding of how to create and edit an article on our Joomla website, let’s spend some time clarifying some key concepts related to the content management features, and do a comparison with WordPress.
At the beginning of this chapter, we mentioned that articles in Joomla are the basic unit of content management. An article could be some news, a blog post, a recipe, a static page, or an announcement. The role of specific content within the website structure is not important while creating it.
This is the first key difference that WordPress users would notice while using Joomla. In WordPress, you should define the role of specific content prior to creating it, choosing, for example, whether you would like to create a blog post (using the Post feature) or whether you would like to create a static page (using the Page feature).
In Joomla, a unit of content can be created as an article, independent of its role within the website. Furthermore, the role of specific content might be changed at any time, simply because in Joomla you will use the menu items to decide how and where to show specific content.
An article might at the same time be a static page of the website – thanks to a Single Article menu item pointing to it – and part of a list of articles or a blog section – thanks to a Category view menu item pointing to the category that includes such an article. We’ll understand more about Joomla menus and their configuration in Chapter 5 of this book.
With this parallel between Joomla and WordPress content management features, we have completed the basics of articles. Let’s move on to exercises to start trying Joomla in action.
It’s time to apply the knowledge acquired in the first chapters of the book and start using the Joomla backend.
To complete the exercises proposed in this chapter, you will need to have a Joomla 4.x installation either on your local machine or on a remote server.
Open the backend of your Joomla installation, simply typing <yourwebsite.tld>/administrator – where yourwebsite.tld should be replaced with the URL of your installation – and type the administrator password chosen during the installation of Joomla.
Once logged in to the backend of Joomla, go to Article Categories and create a new category called MyCategory. You can set a personal description for the category and leave all the other options as their default values. MyCategory should be a top-level category. Save and go back to the Article Categories view.
Now create a new category named SubCategory1 and set it as a subcategory of MyCategory. Specify a personal description for the subcategory and save it. Then move back to the Home Dashboard screen of your backend.
From the Home Dashboard screen, click on the button to create a new article (Figure 2.1). Add content at your convenience or simply two lines of text. Use the text-formatting features to highlight some text with bold and italic styles. Name the article My Article and let the system automatically apply the alias for the title. Put the article in the MyCategory category that you created in the previous exercise. Save and close the article. Congratulations, you created the first article on your website! You can also preview the article, after saving it, by clicking on the Preview button.
In this chapter, we explored the basic content management features of Joomla and understood how to create an article and configure the settings to customize the appearance of the article on a website, as well as how to use the Media Manager and handle images loaded on the website.
In the next chapter, we’ll go deeper into the content management features, introducing Custom Fields, Workflows, and built-in accessibility functionalities.