Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Bootstrap css is not loaded 24 Sep 2013 11:24 #11179

Everybody (included me) are assuming boostrap is loaded by default on a Joomla 3.x
that's not totally true.

it's loaded only the JS library, not the CSS.
I had to modify the file ROOT\administrator\components\com_mycomponent\dom\framework\bootstrap\core.php to have the bootstrap css fully loaded.

here the original file:
	function buildCss()
	{
		//Bootstrap should not be used
		if (!$this->useFramework('bootstrap'))
			return;

		//Bootstrap is already in the core since Joomla 3.0. And already loaded.
		if (!$this->jVersion('3.0'))
		{		
			$this->attachCss[] = 'bootstrap.min.css';
			$this->attachCss[] = 'bootstrap-responsive.min.css';
			$this->attachCss[] = 'bootstrap-extended.css';
		}
		
		//Some fixes and compatibility
		$this->attachCss[] = 'bootstrap-legacy.css';
	}

and here the modification:
	function buildCss()
	{
		//Bootstrap should not be used
		if (!$this->useFramework('bootstrap'))
			return;

		$this->attachCss[] = 'bootstrap.min.css';
		$this->attachCss[] = 'bootstrap-responsive.min.css';
		$this->attachCss[] = 'bootstrap-extended.css';
		
		//Some fixes and compatibility
		$this->attachCss[] = 'bootstrap-legacy.css';
	}
The following user(s) said Thank You: admin

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

Bootstrap css is not loaded 29 Sep 2013 23:55 #11248

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed
Coding is now a piece of cake
The following user(s) said Thank You: Tomaselli

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

  • Page:
  • 1
Time to create page: 0.057 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started