|
|
|
| November 2002 |
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
| |
|
|
|
|
1 |
2 |
| 3 |
4 |
5 |
6 |
7 |
8 |
9 |
| 10 |
11 |
12 |
13 |
14 |
15 |
16 |
| 17 |
18 |
19 |
20 |
21 |
22 |
23 |
| 24 |
25 |
26 |
27 |
28 |
29 |
30 |
| Sep Dec |
Blogchalk:
Portsmouth, NH, US
|
|
|
|
|
|
Wednesday, November 20, 2002
I managed to get Radio and PHP to play nicely together. If not for an unfortunate temporary brainfart, I would have gotten it figured out somewhat earlier. The reason for doing this is so that I can keep the Radio-generated pages at Silverback looking the same as the pages on the static site, which uses PHP (I didn't want to use Radio to manage the static site). It also strips a great deal of the cruft out of Radio's default templates.
Things to keep in mind:
- Keep as much of the formatting info as you can in an external stylesheet.
- Keep as much of the template-related info as you can in an included PHP script (navigation menu, header, footer, etc).
- Put both your main PHP script and your main stylesheet in a directory to which you can make an absolute reference.
- Remember that CSS "import" is going to use an external-based path.
- Remember that PHP "include" is going to use a server-based path (e.g. /home/foo/www/main.inc). (This was the aforementioned brainfart -- I was missing part of the path to my main PHP script.)
- Don't attempt to code anything complicated before you've finished the first cup of coffee. This is dangerous.
9:26:38 AM
#
|
© Copyright 2002 Brian St. Pierre.
Last update: 12/4/2002; 9:56:44 AM.
|
|
|