You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2005/10/18 00:51:59 UTC

Switchable views (was Re: Views (v1) - a user attempt)

Kevin wrote:
> Thought I'd post my work in progress in trying to do switchable
> alternate css stylesheets. I call it theme switching though not
> sure if that is the correct terminology.

You got the correct terminology and your demo is cool (although I have 
to say I don't like the choice of colours in the themes ;-)).

Of course, you can do much more than just change the colours. It would 
be cool to see a demo that did more drastic changes. Say move the 
navigation to the right side. Remove the last published timestamps, that 
kind of thing.

As a dev though, I can see that what you have done will make this work.

I think this should go into a seed site for views, this is an important 
improvement.

> While doing this it reminded me of the old skinconf with defined
> colors that were used as parameters to an xslt to create one
> css file. It got me thinking that Forrest could generate alternate
> css files then perhaps have a contract that would emulate the
> <forrest:css ...> tag in view files and insert all the required
> alternate css files. Perhaps even part of something like the
> publishedstrip contract to add the links to click to switch the
> themes rather than what I have done in site.xml at the moment.

This sounds like a good idea, in theory. Lets see what Thorsten says 
regarding his plans for skin configuration (now themes). I know he has 
given this some thought, but not sure if there are any concrete plans yet.

> Anyone with a slow dial up? Do you see an unacceptable problem
> if pages aren't cached after choosing another theme other than
> the default 'dull' theme?

This doesn't affect me personally. However, I doubt it would be a 
problem since users will typically select a theme they like and stick 
with it.

> http://www.kegcl.demon.co.uk/forrest/index.html

[OT] are you based in the UK? If so where?

Ross

Re: Switchable views

Posted by David Crossley <cr...@apache.org>.
Kevin wrote:
> 
> > I think this should go into a seed site for views, this is an important 
> > improvement.
> 
> Yes I'd like to make it a contribution. The part about me using a Perl
> template system was snipped. This makes it easier to add more switchable
> parameters to a css template and generate many theme css files.
> 
> If this went into a seed site for views as it stands and an IE or Mac
> css fix is needed it would have to be applied to five css files.

The main/forrest.build.xml build script could handle
this using Ant and XSLT. See some examples at
plugins/build.xml:145 etc. and main/targets/seed.xml

-David

Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Kevin <fo...@kegcl.demon.co.uk>.
Subject changed to Switchable Views? User chooses to add / delete
contracts: breadcrumbs, search box, published strip, branding etc in
their view file. Themes are added to that, which are switchable in
css, yes? More inline.  

On Mon, 2005-10-17 at 23:51 +0100, Ross Gardler wrote: 
> Kevin wrote:
> > Thought I'd post my work in progress in trying to do switchable
> > alternate css stylesheets. I call it theme switching though not
> > sure if that is the correct terminology.
> 
> You got the correct terminology and your demo is cool (although I have 
> to say I don't like the choice of colours in the themes ;-)).

Let me have your three color choices and I'll do a rosstheme :-P)

> Of course, you can do much more than just change the colours. It would 
> be cool to see a demo that did more drastic changes. Say move the 
> navigation to the right side. Remove the last published timestamps, that 
> kind of thing.

Yep, everything is in each alternate css so can be changed. Thought of
merging pelt view css and have corner images automatically generated in
different colors and switchable! (I see later in the thread it may have
been done!)

Moving nav bar to the right was the first thing I tried. But
#leftbar { float: right; } :(
What about three column layout? No I'm working within what the system
gives me as a user and it's good. 

Yes you could make the view switchable by removing an existing published
strip with DHTML and have the page re-flow. I was thinking more of
themes = fonts, colors, borders etc.

> As a dev though, I can see that what you have done will make this work.
> 
> I think this should go into a seed site for views, this is an important 
> improvement.

Yes I'd like to make it a contribution. The part about me using a Perl
template system was snipped. This makes it easier to add more switchable
parameters to a css template and generate many theme css files.

If this went into a seed site for views as it stands and an IE or Mac
css fix is needed it would have to be applied to five css files.

> > While doing this it reminded me of the old skinconf with defined
> > colors that were used as parameters to an xslt to create one
> > css file. It got me thinking that Forrest could generate alternate
> > css files then perhaps have a contract that would emulate the
> > <forrest:css ...> tag in view files and insert all the required
> > alternate css files. Perhaps even part of something like the
> > publishedstrip contract to add the links to click to switch the
> > themes rather than what I have done in site.xml at the moment.
> 
> This sounds like a good idea, in theory. Lets see what Thorsten says 
> regarding his plans for skin configuration (now themes). I know he has 
> given this some thought, but not sure if there are any concrete plans yet.
> 
> > Anyone with a slow dial up? Do you see an unacceptable problem
> > if pages aren't cached after choosing another theme other than
> > the default 'dull' theme?
> 
> This doesn't affect me personally. However, I doubt it would be a 
> problem since users will typically select a theme they like and stick 
> with it.

Page flashes to the persistant css sometimes. I've made it look
like a blank page so less noticable.

> > http://www.kegcl.demon.co.uk/forrest/index.html
> 
> [OT] are you based in the UK? If so where?
> 

Yes Hertfordshire, you?

Kevin.

> Ross



Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> El mar, 18-10-2005 a las 13:10 +0100, Ross Gardler escribió:
> 
>>Cyriaque Dupoirieux wrote:
>>
>>>Thorsten Scherler a écrit :
>>>
>>>
>>>>El mar, 18-10-2005 a las 10:03 +0100, Ross Gardler escribió:
>>>> 
>>>>
>>>>
>>>>>Cyriaque Dupoirieux wrote:
>>>>>  
>>>>>
>>>>>
>>>>>>Ross Gardler a écrit :
>>>>>>    
>>>>>
>>>>>...
>>>>>
>>>>>>to http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
>>
>>...
>>
>>
>>>>>I can't see how to switch styles here, I like the idea of a combo box.
>>>>>  
>>>>
>>>>
>>>>Button left in some Mozilla. Otherwise something like "view - style" and
>>>>you can select the css.
>>
>>Not in my firefox 1.0.7 :-(
> 
> 
> Normally not possible, I am using the *same* version on linux and there
> is an option:
> Ver (view)
> Estilo de la página (style of the page) - sin estillo (without style)
> |...

DOH!!!

You are right, I am being exceptionally stupid this morning. There it 
is, right in front of me. It must have been hiding earlier ;-)

Sorry.

>>That's my point, see my following comment (re Gavins worked in IE and 
>>Firefox without a plugin) ...

And Opera too (I tested that now).

> BTW it is *kevin*. 

Sorry Kevin.

Ross


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Thorsten Scherler <th...@apache.org>.
El mar, 18-10-2005 a las 13:10 +0100, Ross Gardler escribió:
> Cyriaque Dupoirieux wrote:
> > Thorsten Scherler a écrit :
> > 
> >> El mar, 18-10-2005 a las 10:03 +0100, Ross Gardler escribió:
> >>  
> >>
> >>> Cyriaque Dupoirieux wrote:
> >>>   
> >>>
> >>>> Ross Gardler a écrit :
> >>>>     
> >>>
> >>> ...
> >>>> to http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
> 
> ...
> 
> >>> I can't see how to switch styles here, I like the idea of a combo box.
> >>>   
> >>
> >>
> >> Button left in some Mozilla. Otherwise something like "view - style" and
> >> you can select the css.
> 
> Not in my firefox 1.0.7 :-(

Normally not possible, I am using the *same* version on linux and there
is an option:
Ver (view)
Estilo de la página (style of the page) - sin estillo (without style)
|...

> 
> Are you sure you are not using a plugin for this?

Yes I am quite sure I have not installed a plugin for that.

> >>> Also why do you mention "in firefox"?   
> >>
> >>
> >> It is a build in feature, I do not use win so no clue whether IE has
> >> this option but I think it has.
> >>  
> >>
> > Excactly the same, I don't know how to do this with IE or Opera, but I 
> > think it's possible,
> 
> That's my point, see my following comment (re Gavins worked in IE and 
> Firefox without a plugin) ...

BTW it is *kevin*. It is doing *exactly* the same like the what firefox
is doing out of the box via menu with javascript. There is no different
besides that you can do it from the page. Yes, we need such a
contract/jscript.

> >>> Does this imply it only works in Firefox? Gavins solution worked in 
> >>> IE too (didn't test in Opera).
> 
> ...
> 
> >> Anyway I would like to see this code. ;-)
> >>  
> >>
> > I will work on it as soon as I am able to generate my site again... :'(
> 
> I would liase with Gavin on this. His solution appears to be browser and 
> plugin independant.

See above it is a jscript that is coming with firefox out-of-the-box (no
plugin) and yes we need this as contract.
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Ross Gardler <rg...@apache.org>.
Cyriaque Dupoirieux wrote:
> Thorsten Scherler a écrit :
> 
>> El mar, 18-10-2005 a las 10:03 +0100, Ross Gardler escribió:
>>  
>>
>>> Cyriaque Dupoirieux wrote:
>>>   
>>>
>>>> Ross Gardler a écrit :
>>>>     
>>>
>>> ...
>>>> to http://cyriaque.dupoirieux.free.fr/testviews1/index.html.

...

>>> I can't see how to switch styles here, I like the idea of a combo box.
>>>   
>>
>>
>> Button left in some Mozilla. Otherwise something like "view - style" and
>> you can select the css.

Not in my firefox 1.0.7 :-(

Are you sure you are not using a plugin for this?

>>> Also why do you mention "in firefox"?   
>>
>>
>> It is a build in feature, I do not use win so no clue whether IE has
>> this option but I think it has.
>>  
>>
> Excactly the same, I don't know how to do this with IE or Opera, but I 
> think it's possible,

That's my point, see my following comment (re Gavins worked in IE and 
Firefox without a plugin) ...

>>> Does this imply it only works in Firefox? Gavins solution worked in 
>>> IE too (didn't test in Opera).

...

>> Anyway I would like to see this code. ;-)
>>  
>>
> I will work on it as soon as I am able to generate my site again... :'(

I would liase with Gavin on this. His solution appears to be browser and 
plugin independant.

Ross


Fixing problems with v2

Posted by Thorsten Scherler <th...@apache.org>.
El mar, 18-10-2005 a las 13:46 +0200, Cyriaque Dupoirieux escribió:
> Thank You Thorsten to answer for me ;-) .

jeje. ;-)
...
> >Anyway I would like to see this code. ;-)
> >  
> >
> I will work on it as soon as I am able to generate my site again... :'(

What is your error message?
What does "svn st" gives you?
In your testing project do you have custom contracts?
How does your forrest.properties look like?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thank You Thorsten to answer for me ;-) .

Thorsten Scherler a écrit :

>El mar, 18-10-2005 a las 10:03 +0100, Ross Gardler escribió:
>  
>
>>Cyriaque Dupoirieux wrote:
>>    
>>
>>>Ross Gardler a écrit :
>>>      
>>>
>>...
>>
>>    
>>
>>>>Of course, you can do much more than just change the colours. It would 
>>>>be cool to see a demo that did more drastic changes. Say move the 
>>>>navigation to the right side. Remove the last published timestamps, 
>>>>that kind of thing.
>>>>        
>>>>
>>>If you want a test with "drastik changes" implemented with views, go to 
>>>http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
>>>You can switch from pelt to leatherdev themes with - for instance in 
>>>firefox - "Views/style of the page" or something like this...
>>>(I  am thinking of a contract which will display a conbo-box to change 
>>>the style...)
>>>      
>>>
>>I can't see how to switch styles here, I like the idea of a combo box.
>>    
>>
>
>Button left in some Mozilla. Otherwise something like "view - style" and
>you can select the css.
>  
>
Yep,

>  
>
>>Also why do you mention "in firefox"? 
>>    
>>
>
>It is a build in feature, I do not use win so no clue whether IE has
>this option but I think it has.
>  
>
Excactly the same, I don't know how to do this with IE or Opera, but I 
think it's possible,

>  
>
>>Does this imply it only works in 
>>Firefox? Gavins solution worked in IE too (didn't test in Opera).
>>    
>>
>
>Actually IMO that is the "missing link" that Cyriaque want to do with a
>combo. 
>  
>
Exactly again, It is not a specificity of firefox, I just wanted to say 
how to change the skin from the browser I use...

>Anyway I would like to see this code. ;-)
>  
>
I will work on it as soon as I am able to generate my site again... :'(

Cyriaque,

Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Thorsten Scherler <th...@apache.org>.
El mar, 18-10-2005 a las 10:03 +0100, Ross Gardler escribió:
> Cyriaque Dupoirieux wrote:
> > Ross Gardler a écrit :
> 
> ...
> 
> >> Of course, you can do much more than just change the colours. It would 
> >> be cool to see a demo that did more drastic changes. Say move the 
> >> navigation to the right side. Remove the last published timestamps, 
> >> that kind of thing.
> > 
> > 
> > If you want a test with "drastik changes" implemented with views, go to 
> > http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
> > You can switch from pelt to leatherdev themes with - for instance in 
> > firefox - "Views/style of the page" or something like this...
> > (I  am thinking of a contract which will display a conbo-box to change 
> > the style...)
> 
> I can't see how to switch styles here, I like the idea of a combo box.

Button left in some Mozilla. Otherwise something like "view - style" and
you can select the css.

> Also why do you mention "in firefox"? 

It is a build in feature, I do not use win so no clue whether IE has
this option but I think it has.

> Does this imply it only works in 
> Firefox? Gavins solution worked in IE too (didn't test in Opera).

Actually IMO that is the "missing link" that Cyriaque want to do with a
combo. 

Anyway I would like to see this code. ;-)
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Ross Gardler <rg...@apache.org>.
Cyriaque Dupoirieux wrote:
> Ross Gardler a écrit :

...

>> Of course, you can do much more than just change the colours. It would 
>> be cool to see a demo that did more drastic changes. Say move the 
>> navigation to the right side. Remove the last published timestamps, 
>> that kind of thing.
> 
> 
> If you want a test with "drastik changes" implemented with views, go to 
> http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
> You can switch from pelt to leatherdev themes with - for instance in 
> firefox - "Views/style of the page" or something like this...
> (I  am thinking of a contract which will display a conbo-box to change 
> the style...)

I can't see how to switch styles here, I like the idea of a combo box.

Also why do you mention "in firefox"? Does this imply it only works in 
Firefox? Gavins solution worked in IE too (didn't test in Opera).

Ross


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Thorsten Scherler <th...@apache.org>.
El mar, 18-10-2005 a las 10:20 +0200, Cyriaque Dupoirieux escribió:
> Ross Gardler a écrit :
> 
> > Kevin wrote:
> >
> >> Thought I'd post my work in progress in trying to do switchable
> >> alternate css stylesheets. I call it theme switching though not
> >> sure if that is the correct terminology.
> >
> >
> > You got the correct terminology and your demo is cool (although I have 
> > to say I don't like the choice of colours in the themes ;-)).
> >
> > Of course, you can do much more than just change the colours. It would 
> > be cool to see a demo that did more drastic changes. Say move the 
> > navigation to the right side. Remove the last published timestamps, 
> > that kind of thing.
> 
> If you want a test with "drastik changes" implemented with views, go to 
> http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
> You can switch from pelt to leatherdev themes with - for instance in 
> firefox - "Views/style of the page" or something like this...
> (I  am thinking of a contract which will display a conbo-box to change 
> the style...)

Yeah I see two new contracts here:
1) like you describe a theme switcher 
2) a color switcher whithin a theme

Maybe we can make one that can do both. ;-)

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Switchable views (was Re: Views (v1) - a user attempt)

Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Ross Gardler a écrit :

> Kevin wrote:
>
>> Thought I'd post my work in progress in trying to do switchable
>> alternate css stylesheets. I call it theme switching though not
>> sure if that is the correct terminology.
>
>
> You got the correct terminology and your demo is cool (although I have 
> to say I don't like the choice of colours in the themes ;-)).
>
> Of course, you can do much more than just change the colours. It would 
> be cool to see a demo that did more drastic changes. Say move the 
> navigation to the right side. Remove the last published timestamps, 
> that kind of thing.

If you want a test with "drastik changes" implemented with views, go to 
http://cyriaque.dupoirieux.free.fr/testviews1/index.html.
You can switch from pelt to leatherdev themes with - for instance in 
firefox - "Views/style of the page" or something like this...
(I  am thinking of a contract which will display a conbo-box to change 
the style...)

Cyriaque,

>
> As a dev though, I can see that what you have done will make this work.
>
> I think this should go into a seed site for views, this is an 
> important improvement.
>
>> While doing this it reminded me of the old skinconf with defined
>> colors that were used as parameters to an xslt to create one
>> css file. It got me thinking that Forrest could generate alternate
>> css files then perhaps have a contract that would emulate the
>> <forrest:css ...> tag in view files and insert all the required
>> alternate css files. Perhaps even part of something like the
>> publishedstrip contract to add the links to click to switch the
>> themes rather than what I have done in site.xml at the moment.
>
>
> This sounds like a good idea, in theory. Lets see what Thorsten says 
> regarding his plans for skin configuration (now themes). I know he has 
> given this some thought, but not sure if there are any concrete plans 
> yet.
>
>> Anyone with a slow dial up? Do you see an unacceptable problem
>> if pages aren't cached after choosing another theme other than
>> the default 'dull' theme?
>
>
> This doesn't affect me personally. However, I doubt it would be a 
> problem since users will typically select a theme they like and stick 
> with it.
>
>> http://www.kegcl.demon.co.uk/forrest/index.html
>
>
> [OT] are you based in the UK? If so where?
>
> Ross
>
>