--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
It's also worth noting that when using JHtml::_('bootstrap.loadcss'); you can pass the language direction for RTL support. JHtml::_('bootstrap.loadcss'); defaults to LTR.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Sent from mobile. Please excuse any typos and brevity.
Ugh, sorry! That's what I meant to type. Damn fat fingers ;-)
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Sent from mobile. Please excuse any typos and brevity.
In the case of Protostar, which is a template that uses a compiled stylesheet based on bootstrap, bootstrap styles will potentially be loaded more than once.
This is one of those edge-cases that I predict that we'll see more of. Not everyone wants to use Bootstrap for their templates. I'm not sure how best to handle it, but one option would be to compile your own bootstrap-based stylesheet and use a wrapper/container class in your extension to be sure that your component's stylesheet targets only it.
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.
--
Sorry if I’m playing catch-up here, I’m not that experienced with bootstrap and J3 yet, but isn’t there a way that an extension can check to see if bootstrap is loaded, and if not load it? The problem with jQuery over the years wasn’t Joomla’s issue, it was developers assuming that it wasn’t loaded and simply adding it to the the head ‘will nilly’ rather than checking and only loading it if required.
It’s important for the continued growth of Joomla that as much flexibility as possible be maintained.
Ah, thanks Matt,
That’s a useful snippet of info to store away :o)
From: joomla-de...@googlegroups.com [mailto:joomla-de...@googlegroups.com] On Behalf Of Matt Thomas
Sent: 09 July 2013 10:51
To: Joomla! General Development
Subject: Re: [jgen] No bootstrap on Joomla 3
Keith,
In the case of Protostar, which is a template that uses a compiled stylesheet based on bootstrap, bootstrap styles will potentially be loaded more than once.
This is one of those edge-cases that I predict that we'll see more of. Not everyone wants to use Bootstrap for their templates. I'm not sure how best to handle it, but one option would be to compile your own bootstrap-based stylesheet and use a wrapper/container class in your extension to be sure that your component's stylesheet targets only it.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrainComposed and delivered courtesy of Nexus 7.
On Jul 9, 2013 4:48 AM, "laoneo" <allon....@gmail.com> wrote:
I know that I can call them multiple times...my question was if bootstrap is loaded twice, because of JHtmlBootstrap::loadCSS? It looks like it is loaded in the template.css file of the protostar template and bootstrap.min.css. For example the login module looks different when only the template is loaded or when addidionally JHtmlBootstrap::loadCSS is called....--
On Tuesday, July 9, 2013 10:34:54 AM UTC+2, Clubnite wrote:You can call the load commands as often as you like. The method responsible for loading checks for their existence and doesn't load anything if the requested files were already loaded. This applies to all the core loader methods of this kind.
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
So if you plan to use this, make it an option which defaults to off and with a warning that users turn it on on their own risk :-)
By the way: Protostar does use JHtml::_('bootstrap.loadCss', false, $this->direction);
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
--
So extension developers just use bootstrap markup and hope for the best? I think we can do better than that....
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
Sorry but a parameter is not the way to go, otherwise all extension developers have to add a turn on/off bootstrap parameter to their code. I'm wondering why this issue was not raised before the implementation of Joomla 3 started, to have an unified way to go, I mean this issue is obvious.Do I have the right impression that the template providers have to override the bootstrap classes instead of providing the complete bootstrap CSS code in their template? From this thread I think as extension developer we are safe. We can just load Bootstrap CSS and then we are fine. The display issues will be up to the template providers....I hear my users complaining already :-)
Now I understand why the template providers could make their templates so fast ready for Joomla 3 ;-)
On Tue, Jul 9, 2013 at 12:17 PM, Matt Thomas <ma...@betweenbrain.com> wrote:
--So if you plan to use this, make it an option which defaults to off and with a warning that users turn it on on their own risk :-)That's a good suggestion.By the way: Protostar does use JHtml::_('bootstrap.loadCss', false, $this->direction);Yes it does. But, only for RTL support[1] (as confusing as that is). It loads the compiled stylesheet just before that - see https://github.com/joomla/joomla-cms/blob/master/templates/protostar/index.php#L42Best,
Matt ThomasFounder betweenbrain™Lead Developer Construct Template Development FrameworkPhone: 203.632.9322
Twitter: @betweenbrainGithub: https://github.com/betweenbrain
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
--
--
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
Please pardon any errors, this message was sent from my iPhone.
I just don't think there is a better way. Standards are important and are there to follow.
--
In all honesty, frontend extensions should have basic structure -- ability to define classes easily and not a lot more. If you want to release extensions styled a certain way, then those extensions should likely be released with a Template.
Spend less time coding and building interfaces with Joomla 3. The Joomla User Interface (JUI) library gives you a standardized backend & frontend interface. LESS CSS and jQuery means you can write less code and the Icomoon font icon library provides a wealth of retina-optimized Icons.
--
In all honesty, frontend extensions should have basic structure -- ability to define classes easily and not a lot more. If you want to release extensions styled a certain way, then those extensions should likely be released with a Template.Some advertisment from http://www.joomla.org/3/en:
As an extension developer I don't really care how exactly my output looks. But I expect the template to support classes like row-fluid, span6, pull-left, btn, alert and such things.
Hi All,
Wow, this has become quite an interesting thread, from technical not to conceptual. :o)
I would describe myself as a front-end dev. Most of my work is building bespoke template for individual clients. I don’t build templates that are for resale, if I need an extension, be it module, component or plugin, that can’t be satisfied by anything already out there, I build it. But at this point I haven’t released anything to general consumption (though I have a few bits that might make the grade, so maybe in the next few months. J
But, to throw my FED view into the mix here…
I totally understand and agree with t need for standards. I get really frustrated if I’m using a 3rd party extension that tries to force me to use their styles. Yes, great, provide some styles for non-dev users, but anything visual provided as part of an extension should be optional, allowing the FEDs who have the time, knowledge and requirement, to switch them off and just take the classes into their own style sheet. You could even provide a blank style sheet template with a list of the classes that can be defined.
So the idea of Extensions just defining (and documenting, please) classes & ids and a single style sheet (though potentially an absolute nightmare to manage) would be great.
I would be interested to know, is there anywhere that best practises for template creation are actually defined and easily accessible? If not, maybe that could be a good subject to cover in the next Joomla Magazine. I’m just transitioning to 3.1 and I know that I would find that a really useful read.
Cheers
Keith
--
Joomla! 3.0 takes a big leap into the mobile space with a total overhaul of both its *frontend* design and administrator interface. With the adoption of the Bootstrap framework...
Along the lines of the current direction of this thread, Michael Babker shared with me a technique that I'd like to consider a "best practice" for extensions. Essentially, the concept is for the extension to check for a CSS or JS overrides within the template before loading the ones shipped with the extension. You can see an example at https://github.com/betweenbrain/K2-Related-Lists/blob/develop/mod_k2_related_lists.php#L48
@Michael - Absolutely! The problem is, I still need to support 1.5.
Glad I could set you up for that link ;-)
@Don - Thanks! Another gem worth noting.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Sent from mobile. Please excuse any typos and brevity.
@Michael - Absolutely! The problem is, I still need to support 1.5.
If you see Kyle Ledbetter's presentationJoomla! 3.0 takes a big leap into the mobile space with a total overhaul of both its *frontend* design and administrator interface. With the adoption of the Bootstrap framework...
--
For what it's worth, the most common feedback I receive from my template presentations is that Bootstrap itself presents a major learning curve to most people creating custom templates. Most of those individuals tend to clam up and nearly have a heart attack when they think about needing to learn, setup and use LESS.
Hi Niv,
Just tried the link in your email and got a 404 :o)
Sorry,
Keith
From: joomla-de...@googlegroups.com [mailto:joomla-de...@googlegroups.com] On Behalf Of Niv Froehlich
Sent: 10 July 2013 05:53
To: joomla-de...@googlegroups.com
Subject: Re: [jgen] No bootstrap on Joomla 3
@ Matt
Just tried the link in your email and got a 404 :o)
My apologies - see attached.
N
Ace! Thanks Niv
From: joomla-de...@googlegroups.com [mailto:joomla-de...@googlegroups.com] On Behalf Of Kannan Naidu
Sent: 10 July 2013 07:19
To: joomla-de...@googlegroups.com
Subject: Re: [jgen] No bootstrap on Joomla 3
Thanks, the new link works like a charm :)
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/groups/opt_out.
Do you really want to let the user to have to create overrides for your extension? I thought it was a decision to support bootstrap in Joomla 3 so let's do it and don't look back :-). If we really go the way that every extension should come with it's own namespaced bootstrap then you will have a bloated site and at the end probably the same war like it was with jQuery in pre Joomla 3 ages.
<div class="jcontainer">
<div class="row-fluid">
<div class="span4">...</div>
<div class="span8">...</div>
</div>
</div>
<div class="container">
<div class="row-fluid">
<div class="span4">...</div>
<div class="span8">...</div>
</div>
</div>
Sergio
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsubscribe@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Is this where JHtmlBootstrap::loadCss could be useful? For example, if extensions where to call it, a template could call
JHtmlBootstrap::UnloadCss if the template is going to handle the styling.
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Sent from mobile. Please excuse any typos and brevity.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
But what do you tell your customers when they don't include bootstrap in their template? Sorry my extension looks so crap because you don't load bootstrap....
I don't know where all this will end as the solution looks relatively easy for all involved parties....just use a namespaced bootstrap version and let the templates override it. Means it will not break any template, bootstraped or not.
What as a FED designer I would like to have is something like:
JHtml::purgestylesheet()
JHtmlBootstrap::UnloadCSS()
To "unload" every already "loaded" stylesheet, then I can take care of
everything with *my* CSS (very likely to be less compiled, BS based) and
it will be my responsibility to have everything working.
Not to open another can of worms, but on the same line of though, maybe
something like that can be useful for JS scripts...
I'd even guess something like this already exists :-)
If you're going to use loadCSS, then you're breaking designs on purpose. There is no reason to do that, and in fact I believe the function should not be there to begin with.
I'd even guess something like this already exists :-)
--From the description it seems it just merge and compress things, but I'll give it a try, thanks!
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send an email to joomla-dev-general@googlegroups.com.