Copyright on image page

There's the copyright field for images in the admin panel, but I don't see a way to access it on the image pages so it displays.
Can we have something like getImageCopyright() or getCopyright() accessible from theme/image.php?

Comments

  • How about the image object methog `getCopyright()`?
  • When I call getCopyright from image.php it's not recognised:

    Call to undefined function getCopyright() in image.php
  • Just to clarify, as sbillard said, the `getCopyright()` method belongs to the `_Image` class. Are you calling it from an instantiated image object?
  • What kagutschi means is that you must use the object model to get this field. If you are on the image page the `$_zp_current_image->getCopyright()`.
  • Sorry for the late reply I was sleeping, yes using it like that works, thanks :)

    Maybe it should be possible to call getImageCopyright() in future versions, since most of those functions are already accessible on the image page (getImageDesc, getImageLocation, etc.)
  • There is really no need--in fact probably the reverse should be done, all the bare "get" type functions should be deprecated and the object model used instead. That would reduce considerably the size of the template functions script at no loss of function.
Sign In or Register to comment.