Forum OpenACS Q&A: How to use style sheets?

Collapse
Posted by Jon Laughton on
Under admin/display there's a page for setting up a few basic
parameters for a simple style sheet. After these have been set up, how
do you make OpenACS/AOLserver take notice of them (because they don't
at the moment)?
Collapse
Posted by Jonathan Ellis on
the easiest way to put in a css is to modify ad_header_with_extra_stuff so the head section looks something like
<head> $extra_stuff_for_document_head <title>$page_title</title> <link Type="text/css" Rel=stylesheet HRef="/public/bf2.css"> </head>
("public" is a directory on my server that I've told ad_restrict_entire_server_to_registered_users to allow non-registered users access to.)
Collapse
Posted by Jon Laughton on
Thanks for the pointer. After trying to get the system working via the display admin pages, I eventually adopted this approach, but using:

<LINK REL=stylesheet TYPE="text/css" HREF="/display/get-simple-css.tcl">

so that the display admin settings come into effect.

I suspect that something has been omitted from the standard ad-defs.tcl.preload file