Jump to content

Select Options for Custom Image fields


maxf5
 Share

Recommended Posts

Hi,

i am trying to add a select options - field to one of my images fields. Usually you create a new template "field-FIELDNAME" and add the custom fields for the images there.
I have a textarea field which is visible, but the options field isn't there. Can you help?

Ryan has select options in his example:
https://processwire.com/blog/posts/pw-3.0.142/

screen_shot_2019-10-11_at_11_52_52_am.1024x0-is.thumb.png.90d95f83d474f8ef49972de7d3df285e.png

 

 

  • Like 1
Link to comment
Share on other sites

On the same page you've linked:

https://processwire.com/blog/posts/pw-3.0.142/#how-to-setup-and-use-custom-fields-in-file-image-fields

basically the "trick" is to use a template without a file named matching the name of your image/s field (eg. field-images where "images" is the name of your image field).
Ryan explains it way better in the post btw.

  • Like 1
Link to comment
Share on other sites

I know ? i have a template (without file) called "field-hero" (for my hero images-field).
In that template there is a textarea field and an options field (singlechoice, radio):

grafik.png.06d893569903eab8be0669eb351054d1.png

.. and only the textfield is displayed:

grafik.thumb.png.a964ae35b3525ca05d5196ed5e7595ac.png

Link to comment
Share on other sites

  • 1 year later...
On 6/9/2020 at 10:06 PM, maxf5 said:

I know ? i have a template (without file) called "field-hero" (for my hero images-field).
In that template there is a textarea field and an options field (singlechoice, radio):

grafik.png.06d893569903eab8be0669eb351054d1.png

.. and only the textfield is displayed:

grafik.thumb.png.a964ae35b3525ca05d5196ed5e7595ac.png

Is there a way to do it by code?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...