Mensagem enviada por Howard Miller

Moodle in English -> General help -> Relative Moodle Links

por Howard Miller -
Imagem de Core developers Imagem de Documentation writers Imagem de Particularly helpful Moodlers Imagem de Peer reviewers Imagem de Plugin developers
When putting in a link from one part of a moodle site to another, it is easy enough to do by copying the address line of the target page.

However, this address will be absolute, which is fine until you have to move the site to another server or similar.

Is there anyway to construct these links such that they are all relative to the site?
Média das avaliações:  -
Imagem de Core developers Imagem de Documentation writers Imagem de Particularly helpful Moodlers Imagem de Peer reviewers Imagem de Plugin developers
Hi,

I have got together a working version of a Wiki style formatter, as a new resource type. This includes english help pages.

It allows intuitive (?) formmatting such as *bold*, /italic/, ^superscript^ ..
* list line 1
* list line 2
* list line 3

plus headings, different para type, loads of other stuff (things like 1/4 get switched to correct character) etc. without needing to learn HTML. We find that people pick this up a lot quicker than learning HTML markup.

Anyway, question: is Martin/the community interested enough that I should do the diff thing and send in the files?
Média das avaliações:  -
Imagem de Core developers Imagem de Documentation writers Imagem de Particularly helpful Moodlers Imagem de Peer reviewers Imagem de Plugin developers
Sorry brain stopped working: I meant "IMS" not "CTI". I was refering to their DTD specifications for representing course material. Although from what I have seen it all looks a bit much.

Re. your use of XSLT - I take your point that XML data can be used to generate SQL. I particularly do not agree with your assertion that XSLT is a replacement for CSS. XSLT should (may) be used to produce compliant XHTML which is supported by CSS. Its a matter of maintaining appropriate levels of abstraction - my main observation is that CSS is hard to get good at but its VERY powerfull.

I still cannot see how you would get from an HTML based course, which I see as a final product, back to a Moodle course. However you do it, its a nasty bit of reverse engineering.
Imagem de Core developers Imagem de Documentation writers Imagem de Particularly helpful Moodlers Imagem de Peer reviewers Imagem de Plugin developers
Errrr....

Ok, do I take it that you already have a considerable investment in online material that you are trying to find an easy way to move to Moodle?

If that is the case it is very likely that there isn't a way. We looked at this (and some of our material *is* in XML). The fundamental problem is that Moodle imposes (bad choice of word) a way of organising courses that implies a ground up approach. It makes it difficuly to simply "plug in" existing material. That doesn't mean to say though that the excercise will not be worth while. I strongly beleive that the result will be better material.

Also you cannot use XSLT on HTML. You can use it to process XHTML but why? This is backwards.. XHTML is not self-describing data, so how would you write the XSLT?
Imagem de Core developers Imagem de Documentation writers Imagem de Particularly helpful Moodlers Imagem de Peer reviewers Imagem de Plugin developers
Ahh... I think I may have missed the point slightly.. but I still don't get it!

Is this a roundabout way of implementing something like the CTI XML specifications?

I still don't really see where the XSLT fits into this. XSLT is primarily used to transform XML into another lot of XML, quite often XHTML - but I don't see the step from here to SQL. SQL is fundamentally not like XML (it would be grim indeed to write XSLT to generate SQL), and what you want to do sounds to me like you are trying to push the technology to do something it won't like.

To take a step back, what problem do you have that you are trying to solve?