? Success

User tests: Successful: Unsuccessful:

avatar bertmert
bertmert
16 May 2015

Issue: #6821

  • Go to Menu Manager and create a menu item Articles ยป Single Article. Select an article that doesn't load any plugins (pure text) to be sure that not a plugin will load Bootstrap.
  • Set these 3 options to SHOW: Show Icons Show Print Icon Show Email Icon
  • Go to frontend (Protostar) and open this menu item/article.
  • Leave it open and go to backend Module Manager and deactivate ALL frontend modules. Just to be sure that not a module will load Bootstrap.
  • Open Protostar > index.php for editing and remove line
JHtml::_('bootstrap.framework');

Bootstrap will also not be loaded by template now.

  • Go to frontend and reload page.
    Should be something like this
    cog-dead

  • Click button (cog). Doesn't expand. Nothing happens.

  • Apply patch, reload page and try again.

cog-alive

avatar bertmert bertmert - open - 16 May 2015
avatar BuddhiEash
BuddhiEash - comment - 16 May 2015

Hi i followed your steps.But although i removed the JHtml::_('bootstrap.framework'); line from Protostar > index.php file, still loads the icon.And it works without any issue.But want to say if i choose "Show Icons Show Print Icon Show Email Icon" to hide, then it's not showing.That means i think, it works fine.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6961.

avatar mahagr
mahagr - comment - 16 May 2015

There are a few other views as well, which stopped working by removing bootstrap JS. Not sure if all of them get fixed by this change, but nevertheless -- good change for the future!

avatar zero-24 zero-24 - change - 16 May 2015
Category Front End
avatar zero-24 zero-24 - change - 16 May 2015
Status New Pending
avatar zero-24 zero-24 - change - 16 May 2015
Labels Added: ?
avatar w00fz
w00fz - comment - 16 May 2015

Looking good to me.

avatar waader
waader - comment - 17 May 2015

@test works! Thanks!

avatar waader waader - test_item - 17 May 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 17 May 2015

@BuddhiEash and @w00fz can we count your tests as successful? So we can set this PR RTC?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6961.

avatar w00fz
w00fz - comment - 17 May 2015

I tested and can confirm the PR fixes the issue.

avatar zero-24 zero-24 - alter_testresult - 17 May 2015 - w00fz: Tested successfully
avatar zero-24 zero-24 - change - 17 May 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 17 May 2015

Thanks RTC'ing this now :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6961.

avatar zero-24 zero-24 - change - 17 May 2015
Labels Added: ?
avatar BuddhiEash
BuddhiEash - comment - 18 May 2015

@zero24 yeah sure i think it's.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6961.

avatar zero-24 zero-24 - alter_testresult - 18 May 2015 - BuddhiEash: Tested successfully
avatar zero-24
zero-24 - comment - 18 May 2015

Thanks @BuddhiEash I have just alter your test :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6961.

avatar N6REJ
N6REJ - comment - 19 May 2015

so, bootstrap 3 templates will need to override icon.php i take it?

avatar bertmert
bertmert - comment - 19 May 2015

so, bootstrap 3 templates will need to override icon.php i take it?

This depends on how you or the template developer integrate BS3 in templates. It's possible to integrate your BS3 files as template overrides, too. Then the line

JHtml::_('bootstrap.framework');

loads your BS3 override and not BS2 from Joomla Core.

e.g. copy BS3-JS to
/templates/protostar/js/jui/bootstrap.min.js
and use
JHtml::_('bootstrap.framework');
in your template.

There are lots of framework files you can override like this (CSS, JS, Jquery, Mootools...)

Too many templates do not use this technique that could avoid many conflicts.

avatar zero-24 zero-24 - close - 22 May 2015
avatar wilsonge wilsonge - change - 22 May 2015
The description was changed
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-05-22 23:50:43
Closed_By wilsonge
avatar wilsonge wilsonge - close - 22 May 2015
avatar N6REJ
N6REJ - comment - 23 May 2015

@bertmert I'd really like to learn more about this feature, perhaps we could have a private chat via skype or something?

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment