| What is jdoc:include type=message? |
| Wednesday, 26 December 2007 09:42 |
|
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" /> Its likely that component developers will start taking advantage of this include to provide system messages. make sure its in your templates! |
If you want online classes delivered to the comfort of your own home, then you need to join Joomlashack University - an affordable online Joomla training course taught by the world's leading experts in Joomla education.
If you are struggling with Joomla and want expert help, then fill out the form below. We'll send you some more information and you'll be first in line join the easiest and fastest way to learn Joomla.