I am creating a template from scratch. I am using Foundation Zurb as it is much better than Bootstrap. I've removed any trace of JHtml::_('bootstrap.etc); from my template's index.php, and only have in place JHtml::_('jquery.framework', false);.
* The problem: This is still showing up in my <head>...
<script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>
I see many components load bootstrap or a piece of bootstrap, such as JHtml::_('bootstrap.tooltip');
I tried creating a plugin which onAfterRender() { would parse $doc->getHeadData();. However, Bootstrap DOES NOT appear. Somehow, Bootstrap is being added AFTER onAfterRender() {...
Please, I need any suggestion or workaround to prevent bootstrap from loading at all.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/3x5FnvQtdr0J.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/ZJxv1hGRTLgJ.
+1000
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Composed and delivered courtesy of Nexus 7.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/f0xHqAdZ0SkJ.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/f0xHqAdZ0SkJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
especially if it has the potential to break sites.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/un48gWRBZR8J.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
@Bakula , do you know how many templates are actually used as they were released. I say none.
I am creating a template from scratch. I am using Foundation Zurb as it is much better than Bootstrap. I've removed any trace of JHtml::_('bootstrap.etc); from my template's index.php, and only have in place JHtml::_('jquery.framework', false);.* The problem: This is still showing up in my <head>...
<script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>I see many components load bootstrap or a piece of bootstrap, such as JHtml::_('bootstrap.tooltip');
I tried creating a plugin which onAfterRender() { would parse $doc->getHeadData();. However, Bootstrap DOES NOT appear. Somehow, Bootstrap is being added AFTER onAfterRender() {...
Please, I need any suggestion or workaround to prevent bootstrap from loading at all.
Before I am accused of simply player-hating I would like to say that there is a lot I do like about Bootstrap, but I don't like the poorly constructed markup that it requires in many cases and I do not like the current implementation of it in Joomla. It effectively forces everyone down the Bootstrap path whether they like it or not. Such integration takes away choices and freedoms of front-end developers and site owners rather than add to them.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/3J5cOY0LnwQJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/0rt6SPzRg1IJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
Good afternoon everyone,
I normally don't spend much time responding to threads, but I thought that maybe I could simplify this for some action.
When I first heard that Bootstrap was going to be integrated with Joomla my response was: great for the backend template, but please keep it out of the frontend. I think it's great for the backend because you have a UI with a unified UX across the board, not the disjointed mess it is when you have the core UI + different UIs for each additional extension (not always, but fairly frequently the case) making it unintuitive to the end user.
For the frontend, leaving it out is my desire because I, like most frontend developers, am very particular about class naming and frequency at which classes are included with elements. Seth and I, who tend to agree on a lot, could probably find 101 possible particulars of frontend development techniques that we would disagree on. Frontend development is incredibly involved and rapidly changing. A frontend developer wants complete control, from HTML elements to class names.
I think what is usually missing from these conversations is focus on who the target audience is. Most of us are business people here and understand that if you try to be all things to all people you usually fail miserably. We can not reconcile the needs of both frontend developers and DIYers. No, that's not true in this case. This is easily resolved if we can all agree:
1. Joomla's core output should not be tightly coupled with any framework.
2. Create a Bootstrap template. Bootstrap can be the default template just like Beez and others had been in the past. The HTML overrides happen at the template level. I say make it default because I wholeheartedly think that the vast majority of users are not frontend developers (though a number rather than a gut feeling would be more helpful.)
3. Also include a barebones template with stripped down overrides, no classes possibly not even any HTML elements with exception of the body tag and up. Depends on how barebones we want to get.
The benefit: we are able to do what is often impossible, make two groups on polar opposites of the needs and skills spectrum happy. I can't see any downsides at the moment. Please point any out if I missed them.
If that is an option I would be happy to contribute time to making it happen because I will likely need to do it anyway for a client very soon. :)
Please pardon any misspellings or poor grammar, on mobile.
Cheers,
Cristina Solana
"Functional Hacker: Think like a fundamentalist, code like a pragmatist." - @headinthebox
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/eQNbf1VPZ9QJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
Silviu is poking on code to disable it from template index.php which will be a hack but it will help Alex at this point ,so far I see all we need is to remove JHtml::_('bootstrap.framework'); from core extensions and let templates take over ,
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/00M4apzVb_QJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
@Garry , did not test your approach but if placing empty files will override the call of BS defaults JS , seems that we will end up calling empty files inhead for no reason.Am I wrong here?
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/gJmxBNF_SKQJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
if(JFactory::getApplication()->input->get('cmd') =='com_contact'){JHtml::_('bootstrap.framework');}orif(JFactory::getApplication()->input->get('cmd') !='com_contact'){JHtml::_('bootstrap.framework');}
Garry , I understand how overrides work but again , makes no sense to me to load an empty js file if thatis what your suggestion does. Instead we need to disable the call to bootstrap from core extensionscompletely and call it from templatenot from extensions.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/DG9Nfi1joaUJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/-BoH94iJrlcJ.
I think it would have to be a 4.0 project unless someone else has ideas about how to maintain backwards compatibility and make the move. In my mind it would certainly break backwards compatibility for anyone using Protostar and possibly others who've created a custom template using the classes in the core views.
Kyle,
I hope you don't think I am suggesting that we should get rid of Bootstrap. I'm not, I am merely suggesting it belongs in a different layer of the CMS. Admittedly, I haven't read all of the posts here so just want to make sure you aren't referring to my comments. :)
What would be the downside of moving Bootstrap classes (also js/css refs) from the core views and making it the default Joomla template via template overrides?
Cheers,
Cristina
You don't understand my point Bakula ,With 1 line in index.php you can call Bootstrap which will be present in any component.This way you can control if Bootstrap is present or not and that is what Alex is asking for.On Sat, Dec 15, 2012 at 1:55 PM, Bakual <werbe...@bakual.ch> wrote:If you don't use Bootstrap in core extensions and only leave that to template overrides, then there is no reason to include Bootstrap at all into Joomla. You can do this already with Joomla 2.5 if you want.The main improvement is that 3rd party developers can count on that Bootstrap is available and don't have to produce own markups and CSS files for everything. That is a very huge improvement for everyone, extension developer, designers and users.Your templates will miss an important feature of Joomla 3.x if you exlude Bootstrap. Just saying. They will be only usefull if the user only uses core extensions, which are porobably only a few users.
Am Samstag, 15. Dezember 2012 19:03:35 UTC+1 schrieb Youjoomla LLC:Kyle did an awesome Job , but all overrides of the frontend core components to accommodate Bootrstrap ,should have been done in template overrides and not in extensions itself.@Alex , Silviuis poking in 3.0 to disable BS completely. Will let you know.On Sat, Dec 15, 2012 at 12:50 PM, elin <elin....@gmail.com> wrote:
I had my reservations about Bootstrap but one reason I came around was that Kyle convinced me we as individuals or as a project can be contributors to improving the quality of the markup they produce both in terms of web standards and accessibility, and we have already been able to do that. He also pointed out that if they stop being responsive to those improvements or if they basically die as a project (always possible) we could simply fork and continue down a positive road on our own.Many of the problems of the core markup in 3 are not due to Bootstrap they are due to the incorrect implementation in the layouts. We had beautiful outputs in 1.6+ and now have regressed somewhat but thanks to Angie and others we are on the road to moving back in the right direction on that. So my suggestion would be to continue working on improving those steadily while not breaking sites.In terms of disabling, it's something a webmaster should be able to do as should som ne designing a 100% custom installation but it is not something that developers of plug and play extensions should do if they want to have a decent reputation with end users and the same goes for retail templaters if they want to make money over the long term.Elin
On Saturday, December 15, 2012 5:08:27 AM UTC-5, Daniel Dimitrov wrote:Hey @everyone,
I'm a little late to the discussion, but I thought that I should add my 2 cents anyway.
There is a big gap between theory and practice. In theory I love the the ideas in "Designing with web standards" - in practice - no thanks (just have a look at the discussions for the above mentioned article http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html )...
The biggest problem that we developers had until version 3 was how to write our html and css & make it look nice on dark, white, yellow and whatever designs... Some templates use head, other use header, another are going for my-monster-header classes. Maybe the markup of bootstrap is not semantically correct (<i> tag anyone????), but it solves our biggest problem - we can write code and be sure that the designer can do whatever he sees fit.
Having those common classes - as bad as they are named is a HUUUUGE improvement. We as developers now know what classes we can use, what elements we can use and this way we basically outsource the design to the designers...
If you try to implement bootstrap with LESS then what markup should I use? We are again going to a situation where I have no idea if you've styled a H2 as a H2 and not as a <p>...
Cheers,
Daniel
On Wednesday, December 12, 2012 7:02:36 PM UTC+1, Alex Crawford wrote:I am creating a template from scratch. I am using Foundation Zurb as it is much better than Bootstrap. I've removed any trace of JHtml::_('bootstrap.etc); from my template's index.php, and only have in place JHtml::_('jquery.framework', false);.* The problem: This is still showing up in my <head>...
<script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>I see many components load bootstrap or a piece of bootstrap, such as JHtml::_('bootstrap.tooltip');
I tried creating a plugin which onAfterRender() { would parse $doc->getHeadData();. However, Bootstrap DOES NOT appear. Somehow, Bootstrap is being added AFTER onAfterRender() {...
Please, I need any suggestion or workaround to prevent bootstrap from loading at all.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/3J5cOY0LnwQJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
--
Best Regards
Dan Casky
Youjoomla Customer Service
+1727-388-6653
5044 17th street N
Saint Petersburg ,FL
33714
-------------------------------
Youjoomla LLC
www.youjoomla.com
Professional Joomla Web Design Services
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/0rt6SPzRg1IJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/poDT1lYaUg0J.
...
Also, if you don't want to use Bootstrap, then don't. Your template has the power and option to use LESS, jQuery, Bootstrap, etc. Just don't include it if you don't want it. That's why I put in the template. To give you the choice. If you don't load Bootstrap all you're left with is standard markup and classes across the core and all components, which is a much better place thank Joomla as ever been before.
...
...
This should be a simple option available to anyone who wants it disabled. And if someone like Alex wants that he also understands that he is disabling it for all extensions on his install.
2) Bootstrap classes in markup:While it can easily be argued that certain BS classes are both standard (beyond Bootstrap) and semantic, placing them within markup removes freedom of choice. Let's take as an example an article readmore:<a class="btn" href="/302default/index.php/park-blog/18-second-blog-post"> <i class="icon-chevron-right"></i> Read more: Second Blog Post</a>There is nothing wrong with using .btn per se, but has anyone considered that I might not want a readmore styled as a button? Where are my choices?I could write in my own css .btn {.. styles that remove all button styles ..} but this is patently ridiculous as it clearly makes no sense to have a class called .btn that makes things *not* look like buttons. It also kills all my button styles elsewhere, as it is very difficult to target only the readmore. Not good.I can implement the exact same button styles in a semantic and pro-choice manner by using:<a class="readmore">
4) This shouldn't happen as core components should never require BS to function (as with mod_login). If they do, there isn't a choice of frameworks. Mod_login, for example, should function with or without bootstrap.js. As a user I can reasonably expect that I will no longer get BS icons or button styles, but I cannot reasonably expect that I will no longer be able to recover my password.
Joomla could also produce:
<a class="readmore btn">
Joomla could also produce:<a class="readmore btn">
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/RkGo7aRihRMJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
, not 1 line of core needs to be redone
, not 1 line of core needs to be redone
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/rqmu5HWe6QMJ.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
To all those suggesting we just add the class readmore to article readmores, in addition to the button class, it's completely ignoring the fact that an end user, or template dev, might not want a readmore to be styled as a button!
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-cms/-/UNR02UFsuo4J.
...