[Pro] checking for external style sheets "yes or no"

Hi everyone
does any one know if theres a way for an action to know if the user has specified external style sheets in the document setup.

I know I could ask the user to choose a yes or no in a checkbox but I was wondering if there’s an automated way of checking it.

cheers Max


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

Hi Max,

fwDocument.fwExternalStylesheets

This will return either true or false depending on the setting in the Document Setup dialog. You should be OK with this right back to FW 5.
Regards,
Tim.

On 5 Aug 2011, at 14:49, max wrote:

does any one know if theres a way for an action to know if the user has specified external style sheets in the document setup.

I know I could ask the user to choose a yes or no in a checkbox but I was wondering if there’s an automated way of checking it.


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: http://www.softpress.com/tny/063
Looking for a webhost? We love these guys: http://www.softpress.com/tny/sxf


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

Thanks Tim thats worked perfectly.

I dont know if people are interested but I have just incorporated it into a rough action and this action adds a style sheet directly after the meta tags and before any other style sheet or page styles specified in the head. I know one of the other actions can do this but as far as I can remember that one places the reference before the meta tags…

Anyway the one I have up and running places it exactly after the standard meta-tags. Its also referencing the style sheet within the css folder. Which again is handy in keeping things neat and tidy.
The idea is so it can be used as a reset style sheet.

Anyone interested then let me know and I will send it over.
Again cheers Tim

Max


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

Hi Max

Yes - that is of interest to me.

David


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

Thanks Max,

Certainly interested. What is the advantage of it being after the meta tags?


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

Hi Sly I am not sure if it has any effect but I also combined it with a solution that references the style sheet within the css folder which is a neater solution.
Send me your email address and I can send you the example
kind regards max


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

Sorry I ment to say advantage rather than effect
all the best max


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

Hi Max,
Apologies for the delay in getting back to you on this.
So if I understand you correctly you’ve managed to access the default stylesheets within the CSS folder from the Action? I’d be interested in knowing how you are doing this.
Regards,
Tim.

On 5 Aug 2011, at 16:28, max wrote:

Anyway the one I have up and running places it exactly after the standard meta-tags. Its also referencing the style sheet within the css folder. Which again is handy in keeping things neat and tidy.
The idea is so it can be used as a reset style sheet.


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: http://www.softpress.com/tny/063
Looking for a webhost? We love these guys: http://www.softpress.com/tny/sxf


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

Hi Tim I wish I could access the default style sheet but alas no…:o(

What I have done though is access and placed the reset style sheet within the css folder.

I am sure you know but if not, from the tests I have done, freeway constructs the folder structure first prior to creating the actual files (which makes absolute sense). But what I didn’t know until about a year ago is that if you created a new folder within the left site panel called css, then freeway will happily use this folder to place it’s default style sheet into. This also happens to other folders that freeway generates too like the Resource folder.

So now thats blooming handy because any files that are placed in there will be published in the correct folder along with all the other style sheets.
What I did next was to create a new css file using the doc creator action, added the reset styles action on the original html page, and finally pointed the reset action to that: css folder/style sheet.
The end result was that the reset style sheet is in a logical place and we have a reset style sheet that works perfectly.

I will send over my example to you so you can see what I did… hope its of some use
all the best max


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

Hi Max,
To be honest I hadn’t realised that Freeway would do that although it does make some sense. A number of years ago I wrote an Action that changes the Resources folder name and I realised that if you change the folder name in the Finder before Freeway has a chance to write any HTML then all of the links to the old resources folder will instantly update to the new folder name. Freeway is silently updating the reference to the folder internally and the paths to the folder get updated automatically.
Thanks for sharing.
Regards,
Tim.

On 11 Aug 2011, at 15:37, max wrote:

I am sure you know but if not, from the tests I have done, freeway constructs the folder structure first prior to creating the actual files (which makes absolute sense). But what I didn’t know until about a year ago is that if you created a new folder within the left site panel called css, then freeway will happily use this folder to place it’s default style sheet into. This also happens to other folders that freeway generates too like the Resource folder.


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: http://www.softpress.com/tny/063
Looking for a webhost? We love these guys: http://www.softpress.com/tny/sxf


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