TOPIC:

system-message-container missing from WorldBiz template 1 week 6 days ago #250629

  • Topic Author
  • rslabbert94
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Hi there,

It seems as though Joomla's #system-message-container is missing from your WorldBiz template. (System Messages are turned on in the template settings.)

I am trying to use Joomla's renderMessages JS function, but that looks for the system-message-container.

See the code below from /media/system/core-uncompressed.js line 321:
Joomla.renderMessages = function( messages ) {
		Joomla.removeMessages();
		var messageContainer = document.getElementById( 'system-message-container' ),
		    type, typeMessages, messagesBox, title, titleWrapper, i, messageWrapper, alertClass;
		for ( type in messages ) {
			if ( !messages.hasOwnProperty( type ) ) { continue; }
			// Array of messages of this type
			typeMessages = messages[ type ];
			// Create the alert box
			messagesBox = document.createElement( 'div' );
			// Message class
			alertClass = (type === 'notice') ? 'alert-info' : 'alert-' + type;
			alertClass = (type === 'message') ? 'alert-success' : alertClass;
			alertClass = (type === 'error') ? 'alert-error alert-danger' : alertClass;
			messagesBox.className = 'alert ' + alertClass;
			// Close button
			var buttonWrapper = document.createElement( 'button' );
			buttonWrapper.setAttribute('type', 'button');
			buttonWrapper.setAttribute('data-dismiss', 'alert');
			buttonWrapper.className = 'close';
			buttonWrapper.innerHTML = '×';
			messagesBox.appendChild( buttonWrapper );
			// Title
			title = Joomla.JText._( type );
			// Skip titles with untranslated strings
			if ( typeof title != 'undefined' ) {
				titleWrapper = document.createElement( 'h4' );
				titleWrapper.className = 'alert-heading';
				titleWrapper.innerHTML = Joomla.JText._( type );
				messagesBox.appendChild( titleWrapper );
			}
			// Add messages to the message box
			for ( i = typeMessages.length - 1; i >= 0; i-- ) {
				messageWrapper = document.createElement( 'div' );
				messageWrapper.innerHTML = typeMessages[ i ];
				messagesBox.appendChild( messageWrapper );
			}
			messageContainer.appendChild( messagesBox );
		}
	};

From what I understand this should be part of the template by including <jdoc:include type="message" /> in the template index file. That is how it is included in protostar, but I am not sure how you do it with gantry?

Thank you!
Rich

Please Log in or Create an account to join the conversation.

system-message-container missing from WorldBiz template 1 week 6 days ago #250634

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2193
  • Karma: 3
  • Thanks: 198
Hi,

in joomla3/templates/worldbiz/component.php
you can find this in line 151 and 152:
<jdoc:include type="message" />
				<jdoc:include type="component" />

This is included in that template

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

system-message-container missing from WorldBiz template 1 week 6 days ago #250638

  • Topic Author
  • rslabbert94
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Thanks Tihana for your prompt response!

Unfortunately, I am aware of that. Although it is specified in the component.php, the "system-message-container" div is not included in the frontend. It should be since <jdoc:include type="message" /> is included in component.php.

You can see in your demo page, the "system-message-container" div is not included there either. https://crosstec.org/templatedemos10/

Regards,
Rich

Please Log in or Create an account to join the conversation.

system-message-container missing from WorldBiz template 1 week 6 days ago #250640

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2193
  • Karma: 3
  • Thanks: 198
Hi,

yes, I see.
This is how the template seems to work.
I'll see what I can do so I'll get back to you :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

system-message-container missing from WorldBiz template 1 week 6 days ago #250641

  • Topic Author
  • rslabbert94
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Thank you!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!