enqueueMessage over header

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

enqueueMessage over header

Post by chasiv » Thu Apr 19, 2018 1:11 pm

I'm using the enqueueMessage to display a warning to users when they access the page that they are not logged in. It is fine for them not to be logged in, but I'm disabling form submission when they are not logged in.

My problem is that the alert message box is on top of other information on my page. I'd prefer that when there is a message, that it push the remainder of the page down.

Is this possible and how would one go about doing so?

Thanks.....

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1174
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: enqueueMessage over header

Post by SharkyKZ » Fri Apr 20, 2018 6:51 am

If I understand you correctly, the behavior you want is how Joomla works out of the box. You're getting different behavior because of your template. You'll need to modify it.

chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

Re: enqueueMessage over header

Post by chasiv » Fri Apr 20, 2018 11:17 am

Thanks for your reply, but a little help on where it may be wrong would be tremendously helpful. Even better would be some help on how to fix it.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24801
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: enqueueMessage over header

Post by Per Yngve Berg » Fri Apr 20, 2018 11:32 am

https://docs.joomla.org/Jdoc_statements

The message is output by this Jdoc statement in your template.

Code: Select all

<jdoc:include type="message" />

chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

Re: enqueueMessage over header

Post by chasiv » Fri Apr 20, 2018 2:45 pm

I've downloaded the entire template folder and there is no such call in any of the files. I even tried just searching '<jdoc:include'

Is there another folder besides 'joomla_root/templates/hassium' that I should be downloading/looking in?

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1174
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: enqueueMessage over header

Post by SharkyKZ » Fri Apr 20, 2018 4:38 pm

http://www.templatki.com/template/1728/hassium

Is this your template? If so, system message placement can be configured in its options.

chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

Re: enqueueMessage over header

Post by chasiv » Fri Apr 20, 2018 5:04 pm

yes SharkyKZ - that is the template. I can see the System Messages in the default layout, but I don't see any options to get it to work like a default bootstrap alert and push the page down rather than put it 'on top' of the existing page.

chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

Re: enqueueMessage over header [RESOLVED]

Post by chasiv » Fri Apr 20, 2018 5:23 pm

SharkyKZ - thanks for the info. I found the issue. If I moved the 'System Messages' from the default location of Navigation to Main Page, it now shows and pushes the content down.

Thanks again...


Post Reply

Return to “General Questions/New to Joomla! 3.x”