Radio UserLand, RSS, Weblog Tools and Design
Coming soon. I heard from Bruce Loebrich over the weekend: "I noticed your site still says it is powered by Radio 8.0.8 as well. I'm interested in finding out exactly how this hybrid functions. Are you planning on discussing this at all?" [jenett.radio]
Excellent Radio fact sheet from Marc Barrot. Last year. Must've missed it. Insightful. [Scripting News]
Re: CSS- How to stop Radio from including in CSS into uploaded files. More than one way to skin a cat on this...
You could set up your categories to have each a different theme, but this will give you new templates, item templates, day templates etc. etc. for each category. In each different template you'd call your different CSS file.
However, having multiple templates can be a royal pain. As I've found out myself. Now, I have a single set of templates in the top level of my www: folder.
If single templates is the way you're set up, just like me. You'd want to create a sort of macro of your own, and at the time of rendering, it's value would be set up according to whatever category you're in at the time. This is more sensible, but, You'd need to make sure EVERY category had a value, even if it was blank (in my example below, you'd add CSSFile "" to your #prefs file).
Each category would need to fill those details by putting a directive in a new #prefs file in their top level folder (www:myCategory:#prefs). If you want further granularity you could put a #prefs file in, say April 2003 (www:myCategory:2003:04:#prefs) and that archive you'd display with a different CSS file.
Here's the head section of my current template before testing this out, see below for other screens of the test.
Before any testing.
I added a macro to a template, as above with the <% markers.
And added a directive to a #prefs file in my category. With the values I want transposed. Notice that you have to put the value in quotes and escape the quotes that are already inside the string.
And there you have it view source in NN7. You can see the value has been transposed.
Naturally, it can be anywhere in a template and we need not swap solely CSS, it could be a picture, a wav file, a bunch of HTML, all these can then be only shown if you were rendering out a particular folder with a particular #prefs file.
--
Steve Hooker
http://www.cybersaps.org/ By Steve Hooker. [Radio UserLand Messages]
CSS- How to stop Radio from including in CSS into uploaded files. CSS- How do I stop Radio from including my CSS file into the uploaded files?
I am trying to control my CSS on an individual category basis but Radio puts the CSS code into every page before uploading. I want to be able to change look and feel across all category (including archives) by simply changing the CSS file on the server.
If I can't stop Radio from hard coding the CSS into the files -can I accomplish this with a server side include?
Thanks. By John Lawlor. [Radio UserLand Messages]
Re: Want to create templateless render. Put #flRender false in a #prefs file in the folder you don't want rendered (check out your gems folder) or as a directive in a file. And I'd guess you'd want to call that file's extension ".html" rather than text.
For SSI you'd also need to change your extensions on the files that are going to call your include ".shtml" by using #renderedFileExtension in the #prefs file again or in the directives in a page.
You can call different template by putting directives at the top of your page. I think you'd need to add a folder to your www:system: called templates and call them from there, using #indirectTemplate. Bit hazy here been sometime.
You could use a very minimal template also, with just #title and bodytext in there. Maybe one or two other macros/directives, again bit hazy.
So, in summary, put a plain template in the folder or above the file you want to plainly render, or add flrender. Else, you're into other powerful but hazy ";->" indirect template stuff.
HTH
--
Steve Hooker
http://www.cybersaps.org/ By Steve Hooker. [Radio UserLand Messages]
Andy Ruff has the best Gnomedex weblog I've seen so far.
[The Scobleizer Weblog]Chris Pirillo has links to tons of Gnomedex blogs. I'll read through them later and see which ones are best.
I'm so missing this.
[The Scobleizer Weblog]