I've never tried this before,  but what if you linked you stylesheet to your Application.cfm as opposed to the header.cfm? Then you shouldn't have to worry about relative or absolute pathing.

Just a thought,
Guy

> Greetings all!
>
> I have a question regarding a fundamental aspect of ColdFusion's Web
> Application Framework.
>
> To understand the question, please examine this cheap ASCII diagram of
> my directory structure:
>
> []Root Directory
> |
> -- Application.cfm
> -- stylesheet.css
> -- index.cfm
> -- OnEndRequest.cfm
> |
> -- []templates (contains: header.cfm, footer.cfm, menu.cfm)
> |
> -- []subfolder (contains: somepage.cfm)
>
>
>
> The application file is set to include the header template, header.cfm.
> The header template includes a link to the external stylesheet,
> stylesheet.css. I link from index.cfm to somepage.cfm in the subfolder.
>
>
> My question: Why is it that somepage.cfm is not formatted with the
> stylesheet? Is it because when the include for the header is called,
> the link to the stylesheet is relative to the location of the page
> youare linking to (i.e., somepage.cfm)? Or is it referenced from where
> the header.cfm is located? How can I get all pages in all
> subdirectories to include the single stylesheet through the header
> template?
>
> Thanks in advance!
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to