[LON-CAPA-users] link to item in a course

Jay Sullivan lon-capa-users@mail.lon-capa.org
Mon, 22 Feb 2010 14:33:51 -0500


--001485f796c450ad8b04803583c7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for the information!

Interestingly, I was able to create a link to a course folder (without
specifying a link to the first resource in the folder). The folder in this
case only contained uploaded documents; does that make a difference?

J


On Sun, Feb 21, 2010 at 8:47 PM, Stuart Raeburn <raeburn@msu.edu> wrote:

> I don't believe that works. Deep linking only seems to work for
>> documents that are publicly shared.
>>
>
> In my experience deep linking within a course works for any resource whic=
h
> is visible to a student with a role in the course, (this is not only true
> for resources which are published "public").  Note: this applies to
> resources, so you need to link to the first item in a folder, rather than=
 a
> folder itself.
>
> The one caveat is that you need to be careful about resources for which t=
he
> URL has been set to be encrypted ("Hidden URL" is set for the resource, o=
r
> for the directly enclosing folder, or for some higher folder in the
> hierarchy).  In that case the encrypted URL (which begins /enc/) needs to=
 be
> used in the href attribute in your link, instead of the plain URL, which
> begins /res/).
>
> The simplest way to make sure you have the correct URL is to go to Naviga=
te
> Contents, and then use "Switch course role to ..." to select a student ro=
le.
>  Open the folders in the Navigation Contents page, and then mouse over th=
e
> link to any of the resources to which you wish to deep link.  Use the
> appropriate mouse button/key combination to copy the link location.
>
> This link includes the path to the resource, as well as the query string =
to
> the "symb" which uniquely identifies the particular resource (in case you
> use a single resource multiple times in a course, e.g., in separate folde=
rs
> etc.).  The hostname should be deleted from the front of the link and the=
n
> the remainder pasted into the href attribute in the <a href=3D"">Go to
> HW02</a> link.
>
> As noted above, currently LON-CAPA requires you to link to the first
> resource in a folder, rather than a folder itself.
>
> As an example, the following is the HTML mark-up you might use for (a) an
> unecrypted URL
>
> <a
> href=3D"/res/msu/apcalc/hwsource/hw00/HW00_01.problem?symb=3Duploaded%2fm=
su%2f33803011027874598msul1%2fdefault_1266800421%2esequence___3___msu%2fapc=
alc%2fhwsource%2fhw00%2fHW00_01%2eproblem">HW02</a>
>
> and (b) an encrypted URL:
>
> <a
> href=3D"/enc/45/48e3d82442917726e5113006875a02e6ab97061803a73590a1a8e004a=
d5357bfce080f54657e96368dc33f23f7f5000c38fae80fce3a8a4ed61800854ea99560?sym=
b=3D%2fenc%2f110%2ff96688cbf61f4ccd3412cb69f66dd3539290e52a69ee0fb812d2e0f7=
dbda6596531d2b5f43e7ceea005cf96ecc721a2f54f5d68b396ef408442a9387e74bed2e3d8=
a4f49fb572928494f82d65740b9aa097ec808af7f6bf6890bb4ad00d5b212d59d93ed439017=
3fb3a8f744a4222d081a723de880fdea43ffcba4ca959b83960d03e237599023c98072153be=
f23267e">HW02</a>
>
> Note: if the encrypted version is used, this will work for both Course
> Coordinators (for whom the URL is usually unencrypted) and also students,
> TAs etc. (for whom it is encrypted). Use this format if "URL hidden" has
> been used for the resource (or a parent folder).
>
> There is a bug report - http://bugs.loncapa.org/show_bug.cgi?id=3D3987(ma=
rked as resolved) - which Lars filed in 2005 about deep-linking.  It's
> not clear whether the issue he encountered was because the resources he
> linked to had encrypted URLs, or because there was some other issue (sinc=
e
> fixed).
>
> Deep-linking has received some attention in development for the 2.9
> release; specifically for the case of deep linking to a particular resour=
ce
> within a course (from outside of LON-CAPA).  In that instance an addition=
al
> item would needs to be passed in the query string (the role), and if a us=
er
> is not logged in authentication occurs first before the deep linked resou=
rce
> is displayed.  More information will be available about this as part of t=
he
> 2.9 release.
>
> Stuart Raeburn
> MSU LON-CAPA group
>
>
>
> Quoting Lars Jensen <ljensen@mail.tmcc.edu>:
>
>  Hi Everyone,
>>
>> On Sun, Feb 21, 2010 at 12:25 PM, Mark Lucas <lucasm@ohio.edu> wrote:
>>
>>> My understanding is that you can go to that spot in the course, copy th=
e
>>> behemoth of a
>>> URL (with all the options) and then paste that into a page, and that
>>> would
>>> work. As long as
>>> you include the parameters, I think that uniquely describes the resourc=
e
>>> AND
>>> it's location
>>> in your course.
>>>
>>
>> I don't believe that works. Deep linking only seems to work for
>> documents that are publicly shared.
>>
>> Lars.
>>
>>  Anybody else - does that "break" anything?
>>> Mark
>>>
>>>
>>>
>>> On Feb 16, 2010, at 9:53 AM, Jay Sullivan wrote:
>>>
>>> Is there a way to post a link to an item in a course?
>>>
>>> For example, I have a simple page that contains all announcements for t=
he
>>> course.
>>>
>>> Occasionally, I would like to be able to provide a link to a specific
>>> location in the course. For example, a link to a folder name "HW2a" .
>>> When
>>> the student clicks this link it would take them directly to that folder
>>> (rather than having to go through "Navigate Contents").
>>>
>>>
>>> --
>>> Mark Lucas  email: lucasm@ohiou.edu
>>> 252D Clippinger Lab phone: (740)597-2984
>>> Department of Physics and Astronomy fax: (740)593-0433
>>> Ohio University
>>> Athens, OH 45701
>>>
>>>
>
>
>
>
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>

--001485f796c450ad8b04803583c7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks for the information! <br><br>Interestingly, I was able to create a l=
ink to a course folder (without specifying a link to the first resource in =
the folder). The folder in this case only contained uploaded documents; doe=
s that make a difference?<br>
<br>J<br><br><br><div class=3D"gmail_quote">On Sun, Feb 21, 2010 at 8:47 PM=
, Stuart Raeburn <span dir=3D"ltr">&lt;<a href=3D"mailto:raeburn@msu.edu">r=
aeburn@msu.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8e=
x; padding-left: 1ex;">
<div class=3D"im"><blockquote class=3D"gmail_quote" style=3D"border-left: 1=
px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"=
>
I don&#39;t believe that works. Deep linking only seems to work for<br>
documents that are publicly shared.<br>
</blockquote>
<br></div>
In my experience deep linking within a course works for any resource which =
is visible to a student with a role in the course, (this is not only true f=
or resources which are published &quot;public&quot;). =A0Note: this applies=
 to resources, so you need to link to the first item in a folder, rather th=
an a folder itself.<br>

<br>
The one caveat is that you need to be careful about resources for which the=
 URL has been set to be encrypted (&quot;Hidden URL&quot; is set for the re=
source, or for the directly enclosing folder, or for some higher folder in =
the hierarchy). =A0In that case the encrypted URL (which begins /enc/) need=
s to be used in the href attribute in your link, instead of the plain URL, =
which begins /res/).<br>

<br>
The simplest way to make sure you have the correct URL is to go to Navigate=
 Contents, and then use &quot;Switch course role to ...&quot; to select a s=
tudent role. =A0Open the folders in the Navigation Contents page, and then =
mouse over the link to any of the resources to which you wish to deep link.=
 =A0Use the appropriate mouse button/key combination to copy the link locat=
ion.<br>

<br>
This link includes the path to the resource, as well as the query string to=
 the &quot;symb&quot; which uniquely identifies the particular resource (in=
 case you use a single resource multiple times in a course, e.g., in separa=
te folders etc.). =A0The hostname should be deleted from the front of the l=
ink and then the remainder pasted into the href attribute in the &lt;a href=
=3D&quot;&quot;&gt;Go to HW02&lt;/a&gt; link.<br>

<br>
As noted above, currently LON-CAPA requires you to link to the first resour=
ce in a folder, rather than a folder itself.<br>
<br>
As an example, the following is the HTML mark-up you might use for (a) an u=
necrypted URL<br>
<br>
&lt;a href=3D&quot;/res/msu/apcalc/hwsource/hw00/HW00_01.problem?symb=3Dupl=
oaded%2fmsu%2f33803011027874598msul1%2fdefault_1266800421%2esequence___3___=
msu%2fapcalc%2fhwsource%2fhw00%2fHW00_01%2eproblem&quot;&gt;HW02&lt;/a&gt;<=
br>

<br>
and (b) an encrypted URL:<br>
<br>
&lt;a href=3D&quot;/enc/45/48e3d82442917726e5113006875a02e6ab97061803a73590=
a1a8e004ad5357bfce080f54657e96368dc33f23f7f5000c38fae80fce3a8a4ed61800854ea=
99560?symb=3D%2fenc%2f110%2ff96688cbf61f4ccd3412cb69f66dd3539290e52a69ee0fb=
812d2e0f7dbda6596531d2b5f43e7ceea005cf96ecc721a2f54f5d68b396ef408442a9387e7=
4bed2e3d8a4f49fb572928494f82d65740b9aa097ec808af7f6bf6890bb4ad00d5b212d59d9=
3ed4390173fb3a8f744a4222d081a723de880fdea43ffcba4ca959b83960d03e237599023c9=
8072153bef23267e&quot;&gt;HW02&lt;/a&gt;<br>

<br>
Note: if the encrypted version is used, this will work for both Course Coor=
dinators (for whom the URL is usually unencrypted) and also students, TAs e=
tc. (for whom it is encrypted). Use this format if &quot;URL hidden&quot; h=
as been used for the resource (or a parent folder).<br>

<br>
There is a bug report - <a href=3D"http://bugs.loncapa.org/show_bug.cgi?id=
=3D3987" target=3D"_blank">http://bugs.loncapa.org/show_bug.cgi?id=3D3987</=
a> (marked as resolved) - which Lars filed in 2005 about deep-linking. =A0I=
t&#39;s not clear whether the issue he encountered was because the resource=
s he linked to had encrypted URLs, or because there was some other issue (s=
ince fixed).<br>

<br>
Deep-linking has received some attention in development for the 2.9 release=
; specifically for the case of deep linking to a particular resource within=
 a course (from outside of LON-CAPA). =A0In that instance an additional ite=
m would needs to be passed in the query string (the role), and if a user is=
 not logged in authentication occurs first before the deep linked resource =
is displayed. =A0More information will be available about this as part of t=
he 2.9 release.<br>
<font color=3D"#888888">
<br>
Stuart Raeburn<br>
MSU LON-CAPA group</font><div><div></div><div class=3D"h5"><br>
<br>
<br>
Quoting Lars Jensen &lt;<a href=3D"mailto:ljensen@mail.tmcc.edu" target=3D"=
_blank">ljensen@mail.tmcc.edu</a>&gt;:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Everyone,<br>
<br>
On Sun, Feb 21, 2010 at 12:25 PM, Mark Lucas &lt;<a href=3D"mailto:lucasm@o=
hio.edu" target=3D"_blank">lucasm@ohio.edu</a>&gt; wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My understanding is that you can go to that spot in the course, copy the<br=
>
behemoth of a<br>
URL (with all the options) and then paste that=A0into a page, and that woul=
d<br>
work. As long as<br>
you include the parameters, I think that uniquely describes the resource AN=
D<br>
it&#39;s location<br>
in your course.<br>
</blockquote>
<br>
I don&#39;t believe that works. Deep linking only seems to work for<br>
documents that are publicly shared.<br>
<br>
Lars.<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anybody else - does that &quot;break&quot; anything?<br>
Mark<br>
<br>
<br>
<br>
On Feb 16, 2010, at 9:53 AM, Jay Sullivan wrote:<br>
<br>
Is there a way to post a link to an item in a course?<br>
<br>
For example, I have a simple page that contains all announcements for the<b=
r>
course.<br>
<br>
Occasionally, I would like to be able to provide a link to a specific<br>
location in the course. For example, a link to a folder name &quot;HW2a&quo=
t; . When<br>
the student clicks this link it would take them directly to that folder<br>
(rather than having to go through &quot;Navigate Contents&quot;).<br>
<br>
<br>
--<br>
Mark Lucas=A0 email:=A0<a href=3D"mailto:lucasm@ohiou.edu" target=3D"_blank=
">lucasm@ohiou.edu</a><br>
252D Clippinger Lab phone: (740)597-2984<br>
Department of Physics and Astronomy fax: (740)593-0433<br>
Ohio University<br>
Athens, OH 45701<br>
<br>
</blockquote></blockquote>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href=3D"mailto:LON-CAPA-users@mail.lon-capa.org" target=3D"_blank">LON-C=
APA-users@mail.lon-capa.org</a><br>
<a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target=
=3D"_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br=
>
</div></div></blockquote></div><br>

--001485f796c450ad8b04803583c7--