Tuesday, January 16, 2018

Login

Don't have an account yet? Register now!

Create an account

Fields marked with an asterisk (*) are required.

Adam
Adam
Offline
0
I want to hide system message position div, when there is no error message.
My template code is :

<div class="error">
<jdoc:include type="message" />
</div>

when there is no error message blank <div class="error"></div>appear.
Responses (1)
  • Accepted Answer

    Tuesday, March 11 2014, 07:57 AM - #permalink
    0
    Try this code in your template file

    <?php if(count(JFactory::getApplication()->getMessageQueue())):?>
    <div class="error">
    <jdoc:include type="message" />
    </div>
    <?php endif;?>

    hope this helps.
    Like
    The reply is currently minimized Show
Your Reply