Support

Akeeba Ticket System

#18121 Disable bootstrap loading in frontend only

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Ticket System version
n/a

Latest post by webemus on Friday, 13 December 2013 08:14 CST

webemus
I use a bootstraped joomla template on my joomla 2.5 web site.

It already uses bootstrap and I have some other components using the same bootstrap style.

As ATS uses its own bootstrap version (strapper) the ATS screens look slightly different that the rest.

I tried to disable strapper loading using strapper.ini but it also prevent the loading on the backend where I need it because akeeba components looks really bad without it.

I end doing this core change on the strapper.php, but of course it won’t survive an upgrade.

if ($loadBootstrap == 'full')
        {
            if ($app1->isAdmin()) {array_unshift($altCss, 'media://akeeba_strapper/css/bootstrap.min.css');}
            if ($app1->isAdmin()) {self::$scriptURLs[] = FOFTemplateUtils::parsePath('media://akeeba_strapper/js/bootstrap.min.js');}
			if ($source == 'less')
			{
				self::$lessURLs[] = array('media://akeeba_strapper/less/bootstrap.j25.less', $altCss);
			}
        }



I wonder if stapped.ini could have some parameters to load it or not in back and front end.
Thanks

nicholas
Akeeba Staff
Manager
I think you read the code but missed the whole point of it. No worries, that's why we are here.

Take a look at the first 20 lines of the media/akeeba_strapper/strapper.ini file. It tells you how to create an override for it in your front-end template. In your copy set bootstrap_joomla2="none" and you're done. Do note that the override is per template. In other words, if you ever happen to use two different templates on your site, one Bootstrap-based and one not, you can only turn off Bootstrap loading in the Bootstrap-powered template only. I am trying to think things thoroughly before implementing a feature :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

webemus
Hi,

I just tried this amd worked.
Thanks

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!