Menu Overrides from Articles and Which Setting Wins
There are three places to set their inclusion or exclusion on the page. There’s a setting in the Article Parameters, the same setting in the individual article, and a third setting in the menu item. So which one wins?
- The lowest priority goes to the Article Parameters. Think of this priority as the global setting
for your articles. The individual article setting and the menu setting override anything set in Article Parameters.
- The second priority is the menu settings. This priority overrides the Article Parameters, but not the individual article settings. These settings are extremely useful when confi guring blogs. This priority overrides any Article Parameter setting, but it still sets a pile of posts to appear in a certain way, without setting each article individually.
- The highest priority is the individual article setting. Use this only if a specific article needs the override. For example, perhaps one article would not have the article title display, but every
other article does display the article title.
Tips and examples
Some developers like to set all three locations to display or not display something. They say, for example, not to display the author name in the Article Parameters, in the individual article, and in the menu item. This is just creating extra work, and later, if you change your mind, you may have a hard time unraveling what you did in the first place.
Learn to take advantage of this series of overrides, and you’ll save yourself a bundle of time and prevent headaches.
For example:
- If you never, ever want to have an article’s author display on your site, set it in the Article
Parameters. Set all the article settings and menu settings to just Use Global (which is set
by default).
- If you want to display the author name in one section blog, set the menu settings for the
section blog to show the author name. All articles should stay set to Use Global (the default).
That way, you have one place to change your mind later. You can change it on a per-article
basis, but if you ever change your mind, you would need to edit dozens, hundreds, or even thousands of articles.
- If you don’t want to display the author name for one post in that same blog — for example, an announcement in the blog, where an author name isn’t relevant — then setting the author name on a per-article basis makes perfect sense. However, if 80 percent of the posts include author names and 20 percent of the posts do not, I would set the blog to show the author name in the menu setting, and then set individual articles to not show the author name. It’s less work that way.
Source:
Book from Jen Kramer which is called "Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site"
I modified some small parts for readability reasons.