Alternate Stylesheets For Radiant CMS

I made an alternate stylesheet in the Layout section, made the page that
will use this stylesheet. Assigned it’s Layout as Stylesheet02, Page
Type:
normal however when I load the page, all I see is the unformatted
stylesheet, and no content.

Looked through the Radiant /docs, was unable to see a solution

Cheers, Ben.

You need to create a page named Stylesheet02 with layout Stylesheet.
Stylesheet is a simple layout with only <r:content /> in the body and
text/css as content-type.
Then you can link to Stylesheet02 like a simple css file.

Il giorno 17/ago/07, alle ore 02:18, Ben M. ha scritto:


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

Hi Andrea,

I made the Stylesheet02, with layout: stylesheet, Page Type: normal
Made the test page Splash with some simple and used the rel css
link
=>

Test of non-inherit Radiant page insert text

Using layout: inherit, layout: normal, layout: text/xml, layout: XML
feed
produce an Error 404.

While layout: stylesheet, produces a blank (desired) page with some
minimalHTML content however without any .css formatting.

Is the new stylesheet02 page required to be titled stylesheet02.css?

Cheers, Ben.

While layout: stylesheet, produces a blank (desired) page with some
minimalHTML content however without any .css formatting.

Is the new stylesheet02 page required to be titled stylesheet02.css?

No, you can use stylesheet02. What do you see at youhost/stylesheet02?
Do you see the stylesheet?


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

Ben M. wrote:

I made an alternate stylesheet in the Layout section, made the page that
will use this stylesheet. Assigned it’s Layout as Stylesheet02, Page Type:
normal however when I load the page, all I see is the unformatted
stylesheet, and no content.

Looked through the Radiant /docs, was unable to see a solution

Cheers, Ben.

Hi Ben,

I’m not sure I fully understand your problem. If you want to use a
second stylesheet, you do it exactly the same way as you use the first
one.

  1. Create a layout for stylesheet - all that has is the r:content tag
  2. Create stylesheet 2 as a page that has the layout ‘styleheet’

3A. Create a content page of type ‘normal’ and include a tag to the
stylesheet from that page
OR
3B1. Create a layout (layout2) that is a full HTML page that will be
served and uses stylesheet2
3B2. Create a page of type normal that has the layout ‘layout2’

Remember: a style sheet is not a layout. It is just another page.

The instructions you need to repeat are steps 1,3, and 5 of my hello
world tutorial (I just noticed that my tutorial doesn’t have a step 4):
http://notepad.onghu.com/2007/5/26/hello-world-using-radiant-cms

I just saw your next email - to make a stylesheet work properly, could
you refer to step 5 in my tutorial above.

Hope this helps.
Cheers,
Mohit.
8/17/2007 | 9:18 AM.

yes, i can see the stylesheet itself. i’ll try doing it from scratch
using
Mohit’s suggestion and see what happens.

Il giorno 17/ago/07, alle ore 03:38, Ben M. ha scritto:

yes, i can see the stylesheet itself. i’ll try doing it from
scratch using
Mohit’s suggestion and see what happens.

Ok… if you can see it, maybe the problem is in the html code.

stylesheet02?
Do you see the stylesheet?


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it