Add a custom field to the show.php?

Hi

Just wondering if anyone have experience adding a custom field to the show.php? I’m looking to add a caption field that can be pulled into the alt tag from this page.

<img src="<?php echo $image->url(); ?>" alt="<?php echo $image->caption(); ?>">

What are the steps to implement this into the CMS?
Thankful for any tips!

If you are using the panel, you can define the fields you want to use for image file meta data in your show.php blueprint:

files: true
  sortable: true
  fields:
    caption:
      label: Caption
      type: text

If you click on an image in the panel, you can add the caption via a form field. This will then create a meta data file for you.

Thanks for the quick reply.

Would it create a field label Caption on this page per image?
http://postimg.org/image/xd0lbf4ch/

Yes, absolutely, like this:

groovy!! thank you so much for your help