Thanks Tom. Those [images] links should work now. It is sort of a hack though, and creates another call to the database for every page load. Basically I have it look at the owner of the page, and then see if the page owner has an image album (which would be the case if the page owner had ever uploaded a picture.) If an image album exists, then the [images] link goes to that album. If not, then it just goes to the top level of the image system (to /image/).

So on your page it links to /image/tommoody/, but on treehouse it links to /image/ (because the treehouse page is owned by the root account, and root has no image uploads.)

Probably in the future I will change this and add a field to [editpage] where the page owner can specify an image album as the default for that page. That seems more flexible, and it will save the extra call to the database for each page load.
- jim 4-15-2004 5:03 pm





add a comment to this page:

Your post will be captioned "posted by anonymous,"
or you may enter a guest username below:


Line breaks work. HTML tags will be stripped.