Forum .LRN Q&A: Re: Ladies and Gentelmen: LORSm v0.4d!

Collapse
Posted by Ernie Ghiglione on
Hey Nima,

Some else just pointed to me that I have missed your posting here. My apologies.

<blockquote> what do you think about a little improvement on the
navigation frame to display an Icon with the content
type of the file it is referencing?
</blockquote>

Hmm... although nice, this could be a bit cumbersome.

This would require to change a few small changes in the delivery/menu.tcl. The menu.tcl is the page we use to generate the "index page" for the course based on the ims_item that it contains.

Now, the problem here is that ims_items have really little idea what their content is. So you'll have to find out what that is by searching for the ims resource reference (which usually points to a file or URL). In the ims_cp_resources table you'll have the href which will point out to the actual file (or URL) that is meant to be loaded when hitting the ims_item, but since an ims_resource could potentially "enclose" many different files, you will have to search the ims_cp_files table to get the actual cr_item id for that file.

Once you have the cr_item, you can find out what the mime type is and then add an "<img src="pdf.jpg>" after the ims_cp_item title.

So, yeah, it's possible but requires a bit of fiddling.

<blockquote> Also one question: Is it possible for an item in the
manifest to reference a URL in the internet instead
of a resource?
</blockquote>

Yeah, that's not a problem. You can have an entire course that is based on URL and not a single file in the resources.

Thanks,

Ernie