Active
Project:
Magnifier
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2008 at 23:33 UTC
Updated:
27 Dec 2008 at 23:33 UTC
I have magnifier working within a node (ie. without adding anything to the theme). This seems a more sensible way of using it, but I can't get it working with image cache.
I currently have an image called "blahimage.jpg", and I uploaded it to an image node called "blah". The code below works (here), but I can't figure out how to use it with image cache:
(320x320 is one of the pre-set image sizes)
<?php
$args = array(
'magnify' => 4,
'glass_size' => 100,
'imagecache' => '',
'image' => 'http://d514.ecoanarchist.org/sites/default/files/images/blahimage.jpg',
'title' => $node->title,
'alt' => $node->title
);
print theme('magnifier', 'http://d514.ecoanarchist.org/sites/default/files/images/blahimage.320x320.jpg' , $args);
?>I've tried commenting out 'image' =>, and changing 'imagechange' => to 'blah', 'blahimage.jpg', 'blahimage'... none of them seem to work.
I would appreciate some more in-depth documentation on this.