Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
1 total
Favorite
Hot!
What is jdoc:include type=message?
SUBMITTER Posted by karen (18) | 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!
Sign up or Login to comment on " What is jdoc:include type=message?"
Search:
Advanced Filter
    RESET
Best of Joomla! Resources RSS Feed Get the global feed for the news and resources
Like It? Buttons