how to use within a node?

naught101 - December 27, 2008 - 23:33
Project:Magnifier
Version:5.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

 
 

Drupal is a registered trademark of Dries Buytaert.