Welcome to the new Compass Designs website, powered by Joomla 1.5! The goal of this new site is to be the place to bookmark if you are looking for quality Joomla  tutorials, news and tips.

What is jdoc:include type=message?

Posted on Dec 26, 2007
Tagged in Untagged 

If you using Joomla 1.5 RC4, the chances are that your site visitors are not getting all the information they need. Prior to RC4, many messages such as when you register "Your account has been created and an activation link has been sent to the e-mail" where output to the mainbody, not any longer.

There is now a new jdoc with the syntax <jdoc:include type="message" /> which now serves as the output of many system messages... think of it as a specialized module.

For your site visitors to see these messages, this include HAS to be somewhere in the template. Check if your template has it, and if is doesn't add it to the index.php. A good place would be just before <jdoc:include type="component" />.

While you are in the index.php, make sure you add the css styles that will give these messages some style and color. To do this add the following lines to your <head> to call in Joomla 1.5's system CSS:

<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />

Its likely that component developers will start taking advantage of this include to provide system messages. make sure its in your templates!


Comments (2)add comment

Flavio Copes said:

Big thanks for this update! smilies/smiley.gif
December 28, 2007 | url

Ghazwan younes said:

This element should only appear once in the element .
Great update

Thanks .
February 13, 2008 | url

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy

Did you enjoy this Compass Design blog post/tutorial?

Then sign up for regular monthly newsletter. I'll send you great tips on Joomla, email only offers and news from the Joomlasphere.

Email: First Name:

Find more posts tagged with...

RSS Feed For The Joomla Blog


Joomla 1.5 Book

Get the "have to have book" about Joomla 1.5 from Amazon and free access to the companion site, joomlabook.com.

Joomla 1.0 eBook

Get the best selling Joomla 1.0 Admin Manual eBook

Also available in hard copy from
Support independent publishing: buy this book on Lulu.

Who's Here

We have 201 guests and 4 members online