Forums / Setup & design / Image full view link problem

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Image full view link problem

Author Message

Américo Barreira

Monday 19 January 2004 3:14:12 am

I'm displaying an image with a size that I defined (called capatotal).

To display it I have no problem. But when I put the link to see the image in its original size I get an:

Fatal error: Call to a member function on a non-object in /home/virtual/site22/fst/var/www/html/kernel/classes/datatypes/ezimage/ezimagealiashandler.php on line 601
Fatal error: Exponential did not finish it's request.

Code:

<a href={$edactual.data_map.capa_total.content[original].full_path|ezroot} target="_blank">
{attribute_view_gui attribute=$edactual.object.data_map.capa_total image_class=capatotal}
</a>

Any ideas?

Tore Skobba

Monday 19 January 2004 10:48:41 am

Which EZ version are you using.. EZ 3.3-X have a new image system which can lead to these problems when checking variables.. I remember I had fatal errors due to some [original] references when updating to EZ 3.3-1.

Cheers

Américo Barreira

Tuesday 20 January 2004 4:49:45 am

I have version 3.3-1

Tore Skobba

Tuesday 20 January 2004 6:31:10 am

Then you must rewritte your templates which uses
"$edactual.data_map.capa_total.content[original].full_path". I rewrote mine to:

{let content=$node.data_map.thumbnail.content}
{section show=$content.is_valid}
<a href={$content.orginial.url|ezroot}>Link</a>
{/section}
{/let}

Note that orginial here is an image scale without any width or height in override/image.ini.

Cheers
Tore

Note: The let etc. is not neccesary but I just clicked and paste my code, and I know that the new image system is very sensitive, i.e. I have not managed to get is_valid to work without an let.

See here for more:
http://www.ez.no/developer/ez_publish_3/forum/setup_design/is_valid_usage_difficult_bug#msg42692

Américo Barreira

Tuesday 20 January 2004 7:03:48 am

Thanks a lot!

The code works fine!!!!