Joomla secrets

From Joomla! Documentation
Jump to: navigation, search

This Joomla secrets page lists some Joomla trivia that is neither really a secret, nor well known.


How many articles can a Joomla! website contain?

Yes, there is a limitation to the number of articles a default Joomla! website can store: just over 4 billion articles.

Technical background: All articles are stored in a MySQL database, in a table called jos_contents. Every article has its unique ID, which is stored in the ID field. The ID field is of field type INT(11) unsigned. The highest number that can be stored in an INT(11) unsigned field, and hence the maximum ID that can be used, is 4,294,967,295. So, the maximum number of articles that a Joomla! website can contain is 4,294,967,295.

How to show the module positions of a Joomla website?

Add the parameter ?tp=1 behind the URL, e.g.

Technical background info: this functionality can be found as "function mosLoadModules" in /includes/frontend.php (Joomla 1.0.15, line 122).

According to the comments, the following parameters can be used: 0=normal, 1=horiz, -1=no wrapper.

How to create an "article sticky" on the Front Page?

Articles assigned to the Front Page will be added on top of the existing Front Page articles.

To prevent manual ordering every time a new article is added to the Front Page, it's possible to create a sticky:

  • goto the Front Page Manager
  • give the article that should stay on top a negative ordering (e.g. -1).

New added Front Page articles will be placed underneath it.

How to get all your domains traffic to the same URL?

Some sites can be visited through both and Joomla's 1.0.x WYSIWYG editor only works well with the method specified in $mosConfig_live_site in configuration.php. To force all traffic to at an Apache webserver, you can add some code to the .htaccess configuration override file:

RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*)$1 [R=301,L]

If you are unable to make changes to the .htaccess file then consider using an SEO canonicalisation plugin instead.

How to give the WYSIWYG editor a white background?

The WYSIWYG editor at a site with a coloured background will probably have the same coloured background. To solve, put some CSS code in your template's CSS file: template_css.css

.mceContentBody {
text-align: left;
background: #FFF none;
font: normal 11px Arial, Helvetica, sans-serif;

Why is the userid of the first user of a Joomla website 62?

Since the beginning new installed Joomla (and Mambo) websites always start with user id=62 (in the user table jos_user). So why does it not start with id=1? If you believe in Numerology then the following calculation explains it all:

a   d    m   i    n   i    s    t    r   a    t    o    r
1 + 4 + 13 + 9 + 14 + 9 + 19 + 20 + 18 + 1 + 20 + 15 + 18 =
1 + 4 +  4 + 9 +  5 + 9 +  1 +  2 +  9 + 1 +  2 +  6 +  9 = 62

If you believe in Mathematics then you would note that the calculation above should in fact result in 8. And for the ones who don't believe all of the above: it's a legacy issue and nobody seems to know the real reason...

edit: One person who should know, Andrew Eddie, has blogged about the Mystery behind User ID 62

How to show all published content from a Joomla 1.0.x site?

With the Joomla's 1.0.x Search functionality it's possible to show all published sections, categories, articles, weblinks, newsfeeds with one search: Use as keyword %%% (three percent signs in a row) as wild card. Joomla 1.5.x does not accept the % as wild card.

How to have a single login for multiple clients in Joomla 1.0.x ?

Before Joomla 1.0.8 due to a problem in the session implementation it was possible to login with one username simultaneously multiple times. In Joomla 1.0.8 a more secure session management was introduced which made it impossible to use the same login account more then once at a time. However, a 'hidden' feature was implemented: "demo site" which allows multi-login with the same account. In order to accomplish that you'll need to change the var $SITE value in /includes/version.php from 1 into 0.

       /** @var string Whether site is a production = 1 or demo site = 0 */
       var $SITE       = 1;

How can a visitor switch layout templates in the front-end of a Joomla 1.0.x site ?

Add index.php?jos_change_template=some_template_name behind the URL of a Joomla 1.0.x site to switch the template in your browser. The template will only be changed in your own browser, it only works in 1.0.x and you need to know the name of the template (rhuk_solarflare_ii and madeyourweb are default 1.0.x templates!).

See alternative versions of

Note: the jos_change_template information is stored as cookie on your local PC. Restarting your browser or emptying your browser cache won't restore the "original" template in your browser; you'll need to delete the site's cookie or manually "jos_change_template" the original template name to revert back to the original template.

Technical background info: this functionality can be found as "TemplateChooser Start" in /includes/joomla.php (Joomla 1.0.15, line 1270).

Personal tools

Joomla! Sites