Canadian Mysteries

  • Front Page
  • Contact
  • Log in
  • « edit french teacher notes for mysteryquests in Acrobat
  • try regenerating Vinland site before making changes »

add links to images in Vinland site

Posted by sarneil on 15 Dec 2008 in Activity log

To add links to images once the file has been fully marked up, you have to add code manually. The basic block looks like this:
<p>
<img class="docImageCentre"
src="../../images/site/165643_2.jpg"
alt=""
onclick="openWindow('../../images/site/165643_3.jpg', '../../'); return false;" />
</p>
In some cases the first part of the path is "../../", in others it is "../" and in others an html comment containing the string " rootpath " appears instead. Amanuel's code must process that placeholder, though sometimes it seems to get it wrong. I'll try hardcoding the right path and using the placeholder.

Also turns out that you can "assign" an image to a page. I think that makes the image appear at the top of the page with a full caption. You can't assign an image and have a link to the same image on the page, apparently.

Spent the best part of the day making changes and regenerating the vinland site to see if the changes worked. Should be able to finish up by mid-day tomorrow.

This entry was posted by Stewart and filed under Activity log.

Canadian Mysteries

The Canadian Mysteries site consists of a production site containing 12 mysteries, a containing shell and 30 mysteryquests; and a database-driven development site. HCMC took over tech support in summer 08. This blog documents work done on the site from Sept 08. Earlier work is documented in the depts blog in posts prepended with CanMys
  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Search

Categories

  • All
  • Activity log
  • Announcements
  • Tasks

XML Feeds

  • RSS 2.0: Posts
  • Atom: Posts
What is RSS?

Recent Posts

  • Added Sarah Taekema as new Mysteries Admin
  • fix urlencode problem on photo.php pages
  • Batch process images
  • moved learning materials pages
  • de-orphaning links pages on Franklin site
  • Request for teacher locations
  • fix broken links in mysteryquest
  • change backend database pointers
  • landing pages for parks canada
  • Franklin Google search styled

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

This collection ©2026 by admin • Help • Responsive CMS