First of all, thanks for creating this module. I've found that it is the easy way for my end users to insert inline images in WYSIWYG.

I would like to take the user input for the title of the image and use it with ImageCache Actions Add Text. Is there a way to access this metadata?

The ImageCache Actions Add Text allows for evaluating PHP and has some examples like:

  • return format_date(time());
  • return $file_data->description ? $file_data->description : $node->title;
  • return basename($image->source);
  • etc.
  • So I was wondering if there is an easy way to get the Title that my users are entering when they use the wysiwyg_imageupload UI.

    Thanks for your help in advance!
    Steve

Comments

eugenmayer’s picture

Well the submodule API and the submodules like lightbox / colorbox and the caption sub ( see issue queue ) should explain the needed steps

eugenmayer’s picture

Status: Active » Closed (fixed)
wickwood’s picture

Status: Closed (fixed) » Active

I have not been able to figure out how I can determine the Image ID, $iid, from ImageCache Actions Add Text.

I can load the information for a given $iid with
$img_obj = _wysiwyg_imageupload_load_inline_entity($iid);

And from this I can get $img_obj->title to use with ImageCache Actions Add Text.

But I need to give the ImageCache Actions Add Text php script $iid first somehow.

Any ideas on how I might do this or whether what I'm trying to do is impossible? I sure hope this possible, because we can do some pretty cool things with ImageCache Actions if we can load $img_obj.

Thanks in advance for any guidance and help!
Steve