ZenphotoCMS Forum
Quick Edit - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Quick Edit (/thread-10399.html)



Quick Edit - TheBox193 - 2012-09-11

With my theme I'm editing, I'm looking to integrate something along the lines of a quick edit when signed in.

When viewing an image, and a user is signed in(there is only going to be one), I would like to add an link to 'edit' the current image.

Two questions:

  • How can I display a block of code only when a user is signed in.
  • Is there a way to edit only one specific image a time?

I could link to ( zp-core/admin-edit.php?page=edit&album=albumname&subpage=1&tagsort=0&tab=imageinfo ) but if I could, I would like to drill down to editing just that specific image.

Thanks for any thoughts!
-Nathan




Quick Edit - acrylian - 2012-09-11

Actually the admin toolbox does all this already. Did you maybe forget to add that? Look at the bottom of the theme page of the included standard themes (except zpmobile).




Quick Edit - TheBox193 - 2012-09-11

Great Scott! That is brilliant. I did not realize the Toolbox changed depending on the context.

Thanks!