[Radiant] And what happened to the clear page cache button?
John and Catherine Allen
allen at vo.lu
Sat Jun 7 17:49:06 CDT 2008
Casper Fabricius wrote:
> Yes, that's right, John. Clearing of the page cache is done
> automatically upon changes.
>
> With regards to your stylesheet question, I tend to just write a
> standard <link> tag, referring to the slug of the stylesheet. For
> instance:
>
> <link rel="stylesheet" href="/css/standard.css" type="text/css"
> media="screen" />
>
> Here I have a hidden page with the slug of "css", and below that, I
> have a stylesheet page with the slug set to "standard.css".
>
Casper,
Thanks, that pointed me in the right direction at last. I was getting
confused between the Radiant "path", made up of slugs, and the
filesystem path.
However, on my test site it did not work at first. After looking at the
Apache error logs, I tried omitting the leading slash, and now it works
fine.
To be concrete:
Test page: http://allenlux.dyndns.org/radiant3/hello_world
Working version: the layout contains this reference:
<link rel="stylesheet" type="text/css" href="mystyles/new.css" />
where "mystyles" is the hidden page as you suggest in your message.
Non-working version:
<link rel="stylesheet" type="text/css" href="/mystyles/new.css" />
doesn't work (it seems to be looking for a non-existent filesystem folder
<DocumentRoot>/mystyles/
John
>
> On 07/06/2008, at 15:35, John Allen wrote:
>
>> Another beginner question:
>>
>> The older (?) Radiant documentation refers to a "clear page cache"
>> button on the admin page.
>>
>> My Radiant 0.6.7 sites don't have this button - I am right in
>> thinking this is because Radiant now automatically clears the page
>> cache when something is changed in the database?
>>
>> John
--
John Allen
Bofferdange, Luxembourg
allen at vo.lu
http://allenlux.dyndns.org
More information about the Radiant
mailing list