[LON-CAPA-users] Retreiving Name of Course Document in a problem
Wed, 12 Jul 2006 16:41:14 -0400
Hmm, this is basically what I am looking for - some reference to the
enclosing map, or a parent, or something. Maybe something like
resource.parent.parent.title or something...
I tried the construct
and it still gave me the name of the problem (rather than the name of the
Course Document). I think the problem is that the
&EXT('resource.map') piece gives an empty string, rather than a map name.
-----firstname.lastname@example.org wrote: -----
From: Guy Albertelli II <email@example.com>
Sent by: firstname.lastname@example.org
Date: 07/12/2006 03:10PM
Subject: Re: [LON-CAPA-users] Retreiving Name of Course Document in a
> 1) It does not give me the name of the Course Document resource, "Sheet
> in this case. It gives me the title of the first problem on the page.
> seems to be the same as displaytitle, used in a style sheet.
Yep, the default is for it to give you the title of the resource within
which it is being called.
In the case you actually want the title of the enclosing map
Should do it for you.
> 2) When in author mode, if I view master.problem, resource.title is
> I spent a couple of hours trying different possible labels with no
> now I see I have to publish every possibility and switch to Course
> administrator (or a student) to check that possibility. Why don't I see
> something as Author?
You don't need to switch to the Author role to author, you can author
even when your selected role is CC or ST if you have a valid Author
That being said, &EXT('resource.title') in 2.2 will always return
something descriptive. (Although in CSTR space it'll just be the
filename of the resource.)
> 3) Which reminds me, is there some way to have two windows open, one as
> Author and one as Course administrator (or a student)? It is a pain to
> constantly switch back and forth. I run under Firefox, typically with 4
> 5 tabs to various resources. When one tab changes to Administrator, it
> seems to change them all.
By involving multiple machines. But I hope that now that you note that
you can author as CC you see this to be not needed as much.
LON-CAPA-users mailing list