Best of joomla gives you news, joomla templates, extensions, joomla hosting,joomla 3.x templates, tutorials and websites about Joomla , FireBoard official page.
Login | No account yet?  Register | Lost Password?
Best Of Themes

Joomla Resources and Tutorials

What is jdoc:include type=message?
SUBMITTER Posted by karen (24) | 2008-01-13 10:16:45
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!

Read more ...

Advanced Filter
Best of Joomla! Resources RSS Feed Get the global feed for the news and resources
Shape 5 Joomla Templates
High Quality Templates