# Alternate Stylesheets For Radiant CMS

**URL:** <https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290>\
**Category:** Radiant CMS\
**Created:** [August 17, 2007, 2:19am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290 "2007-08-17T02:19:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 2:19am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/1 "2007-08-17T02:19:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 2:30am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/2 "2007-08-17T02:30:39Z")

</div>

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: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 3:10am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/3 "2007-08-17T03:10:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 3:30am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/4 "2007-08-17T03:30:43Z")

</div>

> 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.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 3:22am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/5 "2007-08-17T03:22:42Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 3:39am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/6 "2007-08-17T03:39:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [August 17, 2007, 3:47am UTC](https://www.ruby-forum.com/t/alternate-stylesheets-for-radiant-cms/112290/7 "2007-08-17T03:47:44Z")

</div>

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: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

* * *

Andrea F.

removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)
