Is it possible in moodle to make an extenal resource, like a "Web Link", appear in a separate window?
Thanks,
Lars.
Offhand I didn't see any way to do this. However if it really is not supported, then it should be easy
to cook up some hack along the following lines: add some flag to the URL. The hacking code would watch
for this flag and then add the appropriate target attribute to that anchor.
Zig
to cook up some hack along the following lines: add some flag to the URL. The hacking code would watch
for this flag and then add the appropriate target attribute to that anchor.
Zig
I'm relatively new to Moodle and so I haven't had a chance to snoop around
as much as I would like but I have solved this issue on a per link basis in
the HTML hard code. Basically, I coded the target for each link that I want
to set to a new browser as blank ie: <a href="http://www.google.ca"
target="_blank">. You either have to:
- when using the rich text editor, edit the links in the source code
- write everything up in HTML source in an HTML editor such as Dreamweaver
- a good freeware one is http://www.w3.org/Amaya/
(click on this link and you will see the target="_blank" in action!)
Note that in order to make the 2nd option easier, I disabled the Richtext HTML
editor and just plug code into my windows. I find I have more control over my
results this way.
Cheers,
Kristina
The way I've done this is to put web links in a small and otherwise plain-text page, it works well...like this:
http://www.oxilp.ac.uk/
Otherwise, if I want a url behind a piece of text, I code it in html, and tell moodle to use html formatting, as in the example by Kristina above.
http://www.oxilp.ac.uk/
Otherwise, if I want a url behind a piece of text, I code it in html, and tell moodle to use html formatting, as in the example by Kristina above.
Bug added for a resolution
Bug #315 - External resource in pop-up window?