I am a brand new user. I found that I can link from a moodle resource web page (created as add resource) to a file (e.g. pdf) that I uploaded i to a directory (and which I can then find with browse) or to an external web site using the link to element in the wysiwyg BUT my question is how I can link to another web page that I created as a resource. I could not find anything about that. (I would prefer not to use the full URL obviously).
Thanks in advance
The webpage resource you are linking to is actually created in the database...it's not a file...so, I could be wrong, but I believe the only way you will be able to link to it is by using the full url.
I feared someone would tell me that. I would say that is a bit of a problem. One reason is that, if content is then moved, the link gets broken which can be a real problem.
When you say "I would prefer not to use the full URL obviously" I don't know (a) what you mean by "the full URL" and (b) why anything should be obvious.
As Steve said, Web page resources are stored in the database. Each resource each has a unique id.
Let's say that you have two Web page resources, A and B, and that you want to link to B to A:
Go to the topic block where you created resource A, left click on the name, and select "copy link location" from the context menu (see screenshot). You'll get a URL like this:
Now edit resource B. Select some text and click the Insert Web Link icon on the editor toolbar. Then paste the above URL.
This URL will not change if you "move the resource" because you can't "move" a resource.
yes I realize that I can link to A by using http://yoursite/resource/view.php?id=72
However, it would have been useful to be able to get a list of existing content (e.g. like you do in Joomla) and be able to browse and pick (like you can now do for files that you uploaded into directories).
As the content is a record in the DB indeed I understand its id will remain the same unless you would delete and recreate it.
You can easily get a listing of all your resources. There are several ways to do it. One way is to click the Resources link in the Activities block (if you have one). Another way is to use a magic URL
where the id is the course number.
Surely that is not the fault of Moodle - if you move home and do not circulate your new address then mail will not reach you!!
I think the point is, if he could use a relative link then he wouldn't need to circulate the new address...something that is pretty standard in most "advanced" web applications. Absolute links to things inside Moodle can cause nightmares for people who backup and restore courses even in the same Moodle install.
One way to get around this, if you are the admin and have access to the server, is to export your database, do a search/replace on the urls, then import it back...a real pain. And, unless something has changed recently, this won't even work with labels since they are (or at least were) encrypted in the database.
True, it can be a real problem...been there, experienced that, more than once.
All you need to do then (in any text throughout Moodle) is to mention the NAME of the resource (exactly) and it will be automatically turned into a correct hyperlink.
eg Interactive map of Moodle users
This link is inserted at display time, and so survives moves or rebuilds etc.
I begun another thread on this topic... The point is: can you link to resources that are NOT currently in you course? I tryed to follow you easy steps (activated the filter): I can see links to resources to my course's resources, but not to other Colleagues' resources.
Can you explain me why?
Each participant in a course could have different answers to that question, and it's not nice to show links to things you can't see.
So generally we keep it within one course to keep things simple.