Hello! The solution to my problem is probably quite simple, but I can't find it. I want a link under the images saying "view full size" that links to the original, full-sized picture. I've only find the $imagecache_path variable that prints the path to the node.
+1
A:
You should be able to theme the imagecache function and add a link the original there.
See: http://api.lullabot.com/theme_imagecache
And:
Rimian
2010-06-26 11:53:54
Thanks for replying but it didn't take me any further. I've tried many of those variables but I get nothing.
Toxid
2010-07-02 15:27:34
Okay I figured it out. Pretty easy really. CCK already has a filter to display url path, so I wrote in the <a href="<?php print $node->field_gallery_image[0]['filepath']?>>View full size</a>
Toxid
2010-07-02 19:01:11
That will work. YOu could also use the l() function. Always program to an interface, not an implementation! - l('View full size', base_path() . $node->field_gallery_image[0]['filepath'])
Rimian
2010-07-03 09:26:08
Thanks for the advice, but I can't get that function to work. It prints the base_path two times, don't know why.
Toxid
2010-07-04 13:03:45