Style Sheet Unavailable on Radiant Mental

Hi All,

Was just doing some minor edits in the ‘styles’ pages when I refreshed
and
noticed that the site styling is gone

=> http://www.fourwallsandaroof.com.au

Checked the production_log and the authorised access has only been
myself
and hopefully my boss, we have edited no radiant files. What ids a
possible
cause of this and where do I check that the correct style sheet
(styles.css)
is being referenced?

At least the site is still up, that’s a bonus!

cheers, Ben.

After some further testing on WinXP/Linux, seems that only Firefox fails
to
render using the style sheet. Opera 9.2 and IE6.0 work as per usual.

Any ideas?

Ben M. wrote:

After some further testing on WinXP/Linux, seems that only Firefox fails to
render using the style sheet. Opera 9.2 and IE6.0 work as per usual.

Any ideas?

By chance is the Content-Type wrong on your stylesheet layout? It should
be set to text/css.


John L.
http://wiseheartdesign.com

this is straight out of the source from a Firefox page:

this is straight out of the source from an IE page:

Maybe so, but nothing has changed, in regard to the radiant files, only
being editing via the /admin/login and Firefox worked fine this morning,
and
now doesn’t.

Was just doing some minor edits in the ‘styles’ pages when I refreshed and
noticed that the site styling is gone

=> http://www.fourwallsandaroof.com.au

Checked the production_log and the authorised access has only been myself
and hopefully my boss, we have edited no radiant files. What ids a possible
cause of this and where do I check that the correct style sheet (
styles.css) is being referenced?

From here – Camino 1.5.1pre – it looks like you’re serving your
stylesheets with your default site layout wrapped around them:

http://www.fourwallsandaroof.com.au/styles.css

Go check the styles page in admin, and make sure that layout is set to
Stylesheet. That should do the trick.

Good luck…


Chris B., Hypsometry
http://hypsometry.com/

Hm, I wish the structure for the stylesheets would change in Radiant.

Wouldn’t it be better in the stylesheets and rss feeds code where
placed under Layouts. Insted of using <r:content /> under Layouts to
link to the Page etc.


Gustaf Lindqvist
http://lindq.se

5 maj 2007 kl. 15.47 skrev John W. Long:

Ben M. wrote:

this is straight out of the source from a Firefox page:

this is straight out of the source from an IE page:

You should have a layout just for pages that are stylesheets.

To create a Stylesheet layout:

  1. Switch to the layouts tab

  2. Create a new layout and call it “Stylesheet”

  3. Set the body of the layout to:

    <r:content />

  4. Click the “More” link underneath the title of the stylesheet layout
    and set “Content-Type” to “text/css”.

  5. Save the layout

  6. Switch back over to your “styles.css” page

  7. Set it’s layout to “Stylesheet”


John L.
http://wiseheartdesign.com

Sean C. wrote:

I see what you mean, but Layouts are not navigable/serve-able content,
they are wireframes for the structure of content. XML feeds and
Stylesheets are just degenerate cases.

I’m with Sean. Pages really means “all text files” and Layouts are for
enhancing (or wrapping) them.

For instance, I have a site where I’m using two page parts to store a
single javascript page. One holds commented, human-readable JS, the
other is in a tab called “compressed.”

My JS layout includes the logic to serve up the compressed JS file if it
exists (along with some added copyright stuff), otherwise it serves the
standard page. So this method does add some neat options.

That isn’t to say that there aren’t issues with treating all text files
as a generic “page.” There are different types of pages and users view
them differently. I think Radiant should too.

I see what you mean, but Layouts are not navigable/serve-able content,
they are wireframes for the structure of content. XML feeds and
Stylesheets are just degenerate cases.

Sean