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.
chasiv
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Sat Feb 03, 2007 3:02 am
Location: Peru, ME USA
Contact:

enqueueMessage over header

Postby 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! Guru
Joomla! Guru
Posts: 909
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: enqueueMessage over header

Postby 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

Postby 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: 24308
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: enqueueMessage over header

Postby 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

Postby 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! Guru
Joomla! Guru
Posts: 909
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: enqueueMessage over header

Postby 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

Postby 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]

Postby 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...


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

Who is online

Users browsing this forum: toivo and 21 guests