Nick_NP, on Apr 5 2005, 08:30 PM, said:
The line to add should look something like this :
if (empty($directory)) $directory = 'galleries/'.$etomite->documentObject['alias'];
(add it to the top of the snippet)
If that's what you wanted this should handle it!Â

Hi Nick, this bit of code didn't work. Also unable to use a 2 directory path using the standard snippet, (ie using 'galleries/this_item'). Generates a parse error relating to permissions. The path appears correctly, and the directory has CHMOD 777 on all image directories and images. Simply removing the '/this_item' from the snipped allows it to work (thumbs and large present in both locations).
One side effect, not sure how to fix this. If I insert an image, assigning it to the left so the text appears along side it, the gallery vanishes off the page. For example, I have three images in the gallery, 2 are show and the third is only just shown when the page is maximised. Why is it the gallery doesn't just work around the graphic within the bounds of the content area?
With regards to making this snippet better (as mentioned in the post above), something that would be better would be when the larger image is being viewed, having the 'Next/Previous/Back to Gallery' options at the top of the image as well as the bottom.
Thanks.