[Pro] Forcing FW5 to publish CSS Styles

I’m using some PHP code on a page to display different message text. I want to use CSS styles to control the formatting of the text. The problem is that FW won’t include the style on the page because it isn’t being used as far as FW is concerned. If I use the style on any html text on the page, then FW happily includes the style definition.

Other than having a space character with the style applied, how do I force FW to include it when the page is published? (As a note, the styled space character technique certainly wouldn’t work if you were changing things like background color.)

Thinking this through, is it possible to have multiple style definition blocks on the same page? Of course, using that technique brings me back to the problem of http markup on the master page not being applied to the child pages and therefore having to remember to edit the same text on every page. There must be an easier way!

Thanks for any thoughts.

Jim


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

If you create some text on the pasteboard (in an unlayered HTML box) and style that with the styles you want then the style definitions will be included in your page.

David


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

I was just working on a site today with this issue, and all I had to do was turn on Use External Stylesheets and the problem went entirely away. By default, Freeway uses a single stylesheet for the entire site, so as long as you have an example of this type style somewhere else in the site, the style will be generated and linked to every page in the site.

Walter


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

David,

That work’s great. Thanks for the quick answer and super tip.

Jim


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

Walter,

That sounds like a better solution, but I am concerned by a comment in the manual about that option:

This option is off by default, because some Actions may
exhibit problems with an externally referenced style sheet.

Has anybody encountered this or know what types of actions the manual is referencing?

Jim


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

The problem is that the Actions can’t access the style sheets made this way, so if they need to modify styles or add styles to the page, they can get confused.

Another approach is to put some scraps of the styles in a non-layered HTML box somewhere on the pasteboard of the page, that will put the styles into the page pretty simply.

Walter


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

On 7 Mar 2009, 3:08 am, waltd wrote:
Another approach is to put some scraps of the styles in a non-layered HTML box somewhere on the pasteboard of the page, that will put the styles into the page pretty simply.

Yeah, that’s what David suggested. I put an HTML box on the pasteboard of the master page and applied the style to it. Presto Change-o all the pages worked.

Jim


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