[LON-CAPA-users] Cascading Style Sheets?
lon-capa-users@mail.lon-capa.org
lon-capa-users@mail.lon-capa.org
Mon, 4 Jun 2007 17:21:50 -0400
I'm still having trouble getting the html file to work. See
Chemistry/Labs/01-Techniques/Fire and Ice Lab/Instructions.html
I tried using the .css form of the file. With an html file, either file
(Basic.sty or Basic.css) works in the LINK statement, but ONLY if I am
working as Author, or editing as Course Coordinator. When I publish and
import into Course Documents, I no longer get the css effect. It also fails
if I log in as a student.
Does the resource pathname change when I am Author versus Course
Coordinator? I assume not... I use
/res/monroe/brewington/Common/css/Basic.css for my file spec.
Yeah, I thought the parameters would affect the subdirectories. If there is
a .problem file at the first directory, will the parameter follow into the
subdirectories? Sounds like not. I was thinking to use one scheme for labs,
another for Review Sheets, and another for Extra Credit problems. Oh, well.
It turns out I mistyped the file assignment (left out the final /css
directory) when I did the PPRM method of assigning the css file. Now that
works as advertised for .problem files. Good!
How does the <parameter> tag work? That could be useful to override the
PPRM settings...
So, the current difficulty is getting the .html files to work when the file
is a Course Document.
Thanks,
brew
-----lon-capa-users-admin@mail.lon-capa.org wrote: -----
To: lon-capa-users@mail.lon-capa.org
From: Guy Albertelli II <guy@albertelli.com>
Sent by: lon-capa-users-admin@mail.lon-capa.org
Date: 06/04/2007 04:17PM
Subject: Re: [LON-CAPA-users] Cascading Style Sheets?
Hi Brew,
I looked your resource
/res/monroe/brewington/Chemistry/Labs/01-Techniques/FireAndIce/Instructions.html
in the course 'Regents Chemistry'
- css files need to have an extension of .css or the browser may or
may not work with it correctly.
(changing the above files <LINK> to point to Basic.css made things
work fine for me in my testing environment, after you make the above
change to the file you may need to do a shift-reload or cleanse your
browsers cache too)
If this fails to work let me know, and the specific URL/course that
you aren't seeing things work and I can see if there is any other
issues at play)
- yes, html files also need a cssfile parameter i'll see about getting
that in 2.4
- both relative and absolute <link>s should work fine.
- to make a cssfile default included in a .problem, you can use the
<parameter> tag to make it the default (but likely you'll not want
to do that, configuring it in the course is likely the better
solution)
> Issue - apparently the css link can only be done at the resource
> level? I would like to set all the files (eventually a hundred or
> more) within the directory subtree Labs/... to use the same css
> file. If I try and work from the Map/Folder level, I can't set the
> "CSS file to link" parameter.
The folder must contain a .problem file for the parameter to show up,
if it only contans .html files (since .html files currently don't
allow cssfile as a parameter) the setting won't show.
Additionally, note that in general parameters set on a folder, do not
cascade down into the sub-folders. (hiddenresource is the sole exception).
Taking a look at what you tried
- The Labs folder currently doesn't have any resources in it, so you
would be unable to set a paramaeter on that folder
- Selecting Map/Folder Level, and the specfic map 'Fire and Ice Lab'
you will get the ability to set the parameter cssfile to affect all
.problem resources just in that particular sequence
I suspect it's more likely you'd want this to have a course-wide effect,
in that case cssfile can easily bet set to apply course wide one way is
- go to a problem
- click PPRM
- change the cssfile in the _first_ colum (That column is labeled,
'Any user, in Coures, general', this will affect all .problem
resources
another in Table mode is to select the Parameter Level of 'Course
Level'
--
guy@albertelli.com 0-7-0-9-27,137
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users