To include an ie special stylesheet, create a web/theme/css/browser
directory. The inside it, create the files you need :
ie6.css
ie7.css
ie8.css
They will be included automatically with conditionnal comments.
*as a sidenote* : I realize that Diem has too many special way to do
things. In this example, as all stylesheets are compressed and sent
into one file to the browser, I had to find another way to include
browser specific stylesheets. But nevertheless, it should not require
the symfony dev to use another way to do it. We should keep the
symfony view.yml syntax, and the Diem features. #TODO
On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
Well, there are always other ways to do things and this is not so bad.
In my own projects I have to *manually* compress all the stylesheets so I prefer Diem doing that automatically for me.
What I don't get is the following. When I do it the symfony way, I can do: "lte IE 7". How do I do that with your way? ;-)
For now I duplicated the file and have ie6.css and ie7.css but it's not that elegant.
Daniel
On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
> To include an ie special stylesheet, create a web/theme/css/browser
> directory. The inside it, create the files you need :
> ie6.css
> ie7.css
> ie8.css
> They will be included automatically with conditionnal comments.
> *as a sidenote* : I realize that Diem has too many special way to do
> things. In this example, as all stylesheets are compressed and sent
> into one file to the browser, I had to find another way to include
> browser specific stylesheets. But nevertheless, it should not require
> the symfony dev to use another way to do it. We should keep the
> symfony view.yml syntax, and the Diem features. #TODO
> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>> So, I have the layout thing working.
>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>> I have this in my view.yml in apps/front/config/view.yml:
Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
and moved the ie6.css & ie7.css into it.
What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
They don't show up in the source code. :(
Daniel
On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
> To include an ie special stylesheet, create a web/theme/css/browser
> directory. The inside it, create the files you need :
> ie6.css
> ie7.css
> ie8.css
> They will be included automatically with conditionnal comments.
> *as a sidenote* : I realize that Diem has too many special way to do
> things. In this example, as all stylesheets are compressed and sent
> into one file to the browser, I had to find another way to include
> browser specific stylesheets. But nevertheless, it should not require
> the symfony dev to use another way to do it. We should keep the
> symfony view.yml syntax, and the Diem features. #TODO
> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>> So, I have the layout thing working.
>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>> I have this in my view.yml in apps/front/config/view.yml:
> Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
> and moved the ie6.css & ie7.css into it.
> What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
> They don't show up in the source code. :(
> Daniel
> On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
>> OK, there is another way to do it with Diem.
>> To include an ie special stylesheet, create a web/theme/css/browser
>> directory. The inside it, create the files you need :
>> ie6.css
>> ie7.css
>> ie8.css
>> They will be included automatically with conditionnal comments.
>> *as a sidenote* : I realize that Diem has too many special way to do
>> things. In this example, as all stylesheets are compressed and sent
>> into one file to the browser, I had to find another way to include
>> browser specific stylesheets. But nevertheless, it should not require
>> the symfony dev to use another way to do it. We should keep the
>> symfony view.yml syntax, and the Diem features. #TODO
>> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>>> So, I have the layout thing working.
>>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>>> I have this in my view.yml in apps/front/config/view.yml:
> ( you can see it in dmFrontLayoutHelper.php l.31 )
> 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
>> Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
>> and moved the ie6.css & ie7.css into it.
>> What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
>> They don't show up in the source code. :(
>> Daniel
>> On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
>>> OK, there is another way to do it with Diem.
>>> To include an ie special stylesheet, create a web/theme/css/browser
>>> directory. The inside it, create the files you need :
>>> ie6.css
>>> ie7.css
>>> ie8.css
>>> They will be included automatically with conditionnal comments.
>>> *as a sidenote* : I realize that Diem has too many special way to do
>>> things. In this example, as all stylesheets are compressed and sent
>>> into one file to the browser, I had to find another way to include
>>> browser specific stylesheets. But nevertheless, it should not require
>>> the symfony dev to use another way to do it. We should keep the
>>> symfony view.yml syntax, and the Diem features. #TODO
>>> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>>>> So, I have the layout thing working.
>>>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>>>> I have this in my view.yml in apps/front/config/view.yml:
> But still, this will never be possible with the current system: <!--[if lte IE 7]>...<![endif]-->
> :(
> Daniel
> On 2009-12-01, at 1/December, 1:23 PM, thibault wrote:
>> Sorry, I were wrong. It's
>> msie6.css
>> msie7.css
>> msie8.css
>> ( you can see it in dmFrontLayoutHelper.php l.31 )
>> 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
>>> Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
>>> and moved the ie6.css & ie7.css into it.
>>> What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
>>> They don't show up in the source code. :(
>>> Daniel
>>> On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
>>>> OK, there is another way to do it with Diem.
>>>> To include an ie special stylesheet, create a web/theme/css/browser
>>>> directory. The inside it, create the files you need :
>>>> ie6.css
>>>> ie7.css
>>>> ie8.css
>>>> They will be included automatically with conditionnal comments.
>>>> *as a sidenote* : I realize that Diem has too many special way to do
>>>> things. In this example, as all stylesheets are compressed and sent
>>>> into one file to the browser, I had to find another way to include
>>>> browser specific stylesheets. But nevertheless, it should not require
>>>> the symfony dev to use another way to do it. We should keep the
>>>> symfony view.yml syntax, and the Diem features. #TODO
>>>> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>>>>> So, I have the layout thing working.
>>>>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>>>>> I have this in my view.yml in apps/front/config/view.yml:
> For now Diem doesn't handle this case. It probably will later.
> But what Diem does not yet, you can do yourself right now.
> You can replace the front layout_helper service and override its
> renderBrowserStylesheets method.
> In apps/front/config/dm/services.yml :
> parameters:
> layout_helper.class: myFrontLayoutHelper // change the
> service class name
> Then create apps/front/lib/myFrontLayoutHelper.php :
> class myFrontLayoutHelper extends dmFrontLayoutHelper
> {
> public function renderBrowserStylesheets()
> {
> $html = parent::renderBrowserStylesheets();
> // add your own stuff to $html;
> return $html;
> }
> It's just an example to show how to extend Diem. But I agree this
> feature may be integrated to Diem core.
> 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
>> Okay, it's working now. :) Thanks!
>> But still, this will never be possible with the current system: <!--[if lte IE 7]>...<![endif]-->
>> :(
>> Daniel
>> On 2009-12-01, at 1/December, 1:23 PM, thibault wrote:
>>> Sorry, I were wrong. It's
>>> msie6.css
>>> msie7.css
>>> msie8.css
>>> ( you can see it in dmFrontLayoutHelper.php l.31 )
>>> 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
>>>> Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
>>>> and moved the ie6.css & ie7.css into it.
>>>> What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
>>>> They don't show up in the source code. :(
>>>> Daniel
>>>> On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
>>>>> OK, there is another way to do it with Diem.
>>>>> To include an ie special stylesheet, create a web/theme/css/browser
>>>>> directory. The inside it, create the files you need :
>>>>> ie6.css
>>>>> ie7.css
>>>>> ie8.css
>>>>> They will be included automatically with conditionnal comments.
>>>>> *as a sidenote* : I realize that Diem has too many special way to do
>>>>> things. In this example, as all stylesheets are compressed and sent
>>>>> into one file to the browser, I had to find another way to include
>>>>> browser specific stylesheets. But nevertheless, it should not require
>>>>> the symfony dev to use another way to do it. We should keep the
>>>>> symfony view.yml syntax, and the Diem features. #TODO
>>>>> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
>>>>>> So, I have the layout thing working.
>>>>>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
>>>>>> I have this in my view.yml in apps/front/config/view.yml:
> Ha, dependency injection hard at work there! Thanks! I really have to get used to this (new) power. :)
> Daniel
> On 2009-12-01, at 1/December, 1:46 PM, thibault wrote:
> > For now Diem doesn't handle this case. It probably will later.
> > But what Diem does not yet, you can do yourself right now.
> > You can replace the front layout_helper service and override its
> > renderBrowserStylesheets method.
> > In apps/front/config/dm/services.yml :
> > parameters:
> > layout_helper.class: myFrontLayoutHelper // change the
> > service class name
> > Then create apps/front/lib/myFrontLayoutHelper.php :
> > class myFrontLayoutHelper extends dmFrontLayoutHelper
> > {
> > public function renderBrowserStylesheets()
> > {
> > $html = parent::renderBrowserStylesheets();
> > // add your own stuff to $html;
> > return $html;
> > }
> > It's just an example to show how to extend Diem. But I agree this
> > feature may be integrated to Diem core.
> > 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
> >> Okay, it's working now. :) Thanks!
> >> But still, this will never be possible with the current system: <!--[if lte IE 7]>...<![endif]-->
> >> :(
> >> Daniel
> >> On 2009-12-01, at 1/December, 1:23 PM, thibault wrote:
> >>> Sorry, I were wrong. It's
> >>> msie6.css
> >>> msie7.css
> >>> msie8.css
> >>> ( you can see it in dmFrontLayoutHelper.php l.31 )
> >>> 2009/12/1 Daniel Lohse <annismcken...@googlemail.com>:
> >>>> Hmm, I don't seem to get it to work. I created the "browser" directory inside web/theme/css/
> >>>> and moved the ie6.css & ie7.css into it.
> >>>> What then? I cleared the cache, rebuilt the project, no luck. I even added ie6 and ie7 into the view.yml (without any parameters).
> >>>> They don't show up in the source code. :(
> >>>> Daniel
> >>>> On 2009-12-01, at 1/December, 12:28 PM, ornicar wrote:
> >>>>> OK, there is another way to do it with Diem.
> >>>>> To include an ie special stylesheet, create a web/theme/css/browser
> >>>>> directory. The inside it, create the files you need :
> >>>>> ie6.css
> >>>>> ie7.css
> >>>>> ie8.css
> >>>>> They will be included automatically with conditionnal comments.
> >>>>> *as a sidenote* : I realize that Diem has too many special way to do
> >>>>> things. In this example, as all stylesheets are compressed and sent
> >>>>> into one file to the browser, I had to find another way to include
> >>>>> browser specific stylesheets. But nevertheless, it should not require
> >>>>> the symfony dev to use another way to do it. We should keep the
> >>>>> symfony view.yml syntax, and the Diem features. #TODO
> >>>>> On Nov 30, 5:21 pm, Daniel Lohse <annismcken...@googlemail.com> wrote:
> >>>>>> So, I have the layout thing working.
> >>>>>> But there's one problem: my IE-only stylesheet is not wrapped in conditional comments, something that works with symfony > 1.2
> >>>>>> I have this in my view.yml in apps/front/config/view.yml: