ZenphotoCMS Forum
Additional Image description - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Additional Image description (/thread-4268.html)



Additional Image description - no64 - 2008-12-16

I was just looking for some stuff like the additional information you can edit at the "image description" in the backend.
Like the "City", "Country", "Credit", "Copyright", etc.

Can these informations be displayed on the "image.php" ?




Additional Image description - no64 - 2008-12-16

ok, with

``

I can show everything from that "Custom field", but what's about the other fields?




Additional Image description - sbillard - 2008-12-16

see printImageData()




Additional Image description - no64 - 2008-12-17

hmmm,... if I put this into my image.php:

``

It seems to work fine, but
where can I find the correct "field name of the data desired" ? I have some problems with the "village", "city", "state" and "country"
I have a german zenPhoto installed and I'm not able to translate those correctly..... bad thing.

`

`




Additional Image description - acrylian - 2008-12-17

Hello again...:-) You really need to learn a few things about php functions in general and read the guide I posted on the other thread carefully before proceeding anyfurther. You need to do it this way (as again told on your functions guide tutorial):
``




Additional Image description - no64 - 2008-12-17

harmonzeitn,.... :-) es funktioniert auch ohne "Anführungszeichen"..... I just didn't know the correct field name for "Ort" , "Stadt" , "Land" , "Staat", cause it seems to be some different translations here (I got it now from the backend code):

current translation:

Ort - not village - is location (I should have known that)
Stadt - is city
Land - not country - is state
Staat - not state - is country

I think the translation for "state" and "country" is switched somehow.... but I what do I know, I'm no good english speaking person .... :-)




Additional Image description - acrylian - 2008-12-17

Well, but with quotes is the correct way to do it.

Yes, that's the way I translated it, because "Germany" is the country and "Bayern" would be "ein Land", the equivalent to California which would be a "state" of the country USA. (Well, I can be wrong, too, of course..)




Additional Image description - no64 - 2008-12-17

so,... yes,.... could be that way or the other way....
But that isn't important anymore..... now I know the translation... :-)

Thank's Malte




Additional Image description - sbillard - 2008-12-17

The general way to find the field names would be t look at the database definitions. These you can do using your MySQL administrative tools provided by you Internet Service Provider.




Additional Image description - no64 - 2008-12-18

ok.... thank's