Member
Member
arduino   2009-06-28, 22:06
#1

Hello,
I run the latest version of ZenPhoto on my gallery site. On each image page, in addition to the admin-editable description, I would also like to put an admin-editable custom data field for each image. I've tried to use some function mojo, but was unsuccessful.

What I tried:
``

If anyone can help, it would really be appreciated.

Oh, and to the people who worked painstakingly hard long hours on developing ZenPhoto: A BIG THANK YOU! I am so surprised it has so many features in such a simple package! Great job.

Thanks,
Michael

Member
Member
sbillard   2009-06-29, 01:40
#2

So what happens when you do the above? Just by looking, the only thing I can see is that all the existing calls on printEditable have left the 4th parameter empty.

Member
Member
arduino   2009-06-29, 07:27
#3

No custom data shows up on the page. However, it does create a span element to fill with data:
``

This leads me to believe that the custom_data field that it's referring to is not passing on data like it should.

Member
Member
arduino   2009-06-29, 11:07
#4

Okay, I changed it and now it works:
``

But, when I click to edit it, it comes up in a single-line edit box. How can I make it multiline, like the editable description field?

Administrator
Administrator
acrylian   2009-06-29, 13:16
#5

I don't remember but that might be done via CSS.

Member
Member
arduino   2009-06-29, 13:50
#6

Hmmm... I don't think it's possible to convert a single-line text box into a multi-line text area using CSS. I think CSS would just make the single-line text box appear larger.

Administrator
Administrator
acrylian   2009-06-29, 13:55
#7

Well, either it is a single line input field then you can't do anything or it is a textarea which can be changed via CSS.

As said I am not familiar with the details of this function but since this is done via JS it might just be the element you use to display the data that is turned to an editable element. And that would be CSS then again for the height/line number (the 4th parameter).

Member
Member
arduino   2009-06-29, 14:01
#8

Yeah, I think it is a single line text input field. Anyway, not a very big problem. Thanks for the help, and once again: [b]ZenPhoto rocks![/b]

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.