Thanks for the pointer but I seem to get 404 errors coming back from apache, is there something I should be substituting in the code you gave me? I am using midhgard 1.44 and aegir 1rc2
error logs look like :
[debug] mod_midgard.c(151): Midgard: locating blob=[241]/aigallery [error] File does not exist: /images/aigallery/onCampus.jpg
my url is
http://mysite.net/images/aigallery/Campus.jpg
Thanks.
Marcin Soltysiak wrote:
Quick question. I have created an image gallery for my company. I have added images to it. How do I reference those images so that they can be used?
These are attachmenst to /GLOBALS/{SG_GUID/gallery snippetdir and its subdirs so you can referer as like ie. creating simple active page like this: Page Name: "images" Style: Empty (shared)
<? if($gallery=mgd_get_snippetdir_by_path("/GLOBALS/".$im_site[sg]->guid()."/GA LLERY/".$argv[0])) if(!$gallery->serveattachment($argv[1])) $gallery->serveattachment("shim.gif"); ?>
then use <img src="/images/gallery_name/image_name.jpg">
"shim.gif" would be the 1px transparent gif so that no error show up if mistyped images name.
And of course you can use Aegir DHTML editror to put images from callery into content
Solt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Vincent Stoessel Linux Systems Developer vincent xaymaca.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
