[Pro] Convert to stylesheet action

I am a little disapointed by the ‘Convert to stylesheet’ action.
What I would like it to do is strip the content of a page, while it keeps the div id’s. I do this by hand for a couple of sites with a CMS based on templates wich require a ‘true’ CSS sheet. Like every non-coder it’s hard for me to do and I make a lot of mistakes…
I am aware that there is nothing wrong with Freeway’s generated code, but is there a way to achieve this?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can you say a little more about what you want here? It sounds to me
like you want to create a stylesheet that includes the inline style
attributes from DIVs on the page, and then delete the actual DIVs.
Does that sum it up? If that’s what you want, it actually sounds
fairly do-able.

And as to the “true”-ness of the CSS, I think what you’re trying to
say there is “a complete separation of style from content”. That is
the Grail, and I imagine that Freeway will get there someday soon. But
in the transition from a completely table-based layout to the current
state of CSS-positioned layout, there’s a lot of legacy stuff that has
to be gone through before they can get to externalize every aspect of
the style.

Walter

On Jun 13, 2009, at 6:35 AM, Eelco Deuling wrote:

I am a little disapointed by the ‘Convert to stylesheet’ action.
What I would like it to do is strip the content of a page, while it
keeps the div id’s. I do this by hand for a couple of sites with a
CMS based on templates wich require a ‘true’ CSS sheet. Like every
non-coder it’s hard for me to do and I make a lot of mistakes…
I am aware that there is nothing wrong with Freeway’s generated
code, but is there a way to achieve this?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, that is wat I want to do and it is, indeed, do-able but unfortunately the last HTML pages I had handcoded were in HTML 3.2 (long, long time ago).

I know what CSS sheets do and I have some knowledge of the syntax but not enough. Most of the time I use a CSS grid and copy the Freeway generated DIV ID’s in it. Most of the time it works but sometime’s not like expected.

…well I have to learn more about CSS till Freeway 6 or 7 comes out, I think…

Thank you.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A few related things:

The ESS action does do a good job of attaching the sheet and there is an action called “Remove Page Div Styles” in the actionsforge.com list, but if you’re using ExpressionEngine as your CMS it won’t work.

I would LOVE if someone could figure this out and what causes it is the EE part of “Absolute path to Resources.” That is the only thing that prevents the Remove DIV styles action from working. If you uncheck it in the EE actions, it works, re-check it…it doesn’t work. I believe, Joe Muscara had said that it’s the order in which Freeway reads the actions code. I tried applying one before the other and vice-versa and it still doesn’t work.

Is there a clash of code that voids it out? Kind of like if you use Crowbar and AddSelector on the same DIV item.

(Walt, wouldn’t mind those playing well together, if you got the chance).


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options