rsanchez/entry_type

Allow option_name : Option Label

Closed this issue · 7 comments

Would be great if you allowed for option_name : Option Label naming like PT Fieldpack fieldtypes.

Also great would be a replace_all_options, replace_selected, like PT Multi fieldtypes.

I started a fork but got sidetracked, so I'm putting it here :)

I messed around with this a bit, I'm having trouble making the :all_options tag pair work. Can you confirm that it indeed works with a regular old PT Multi fieldtype?

I took a look through the EE code and found this comment: "Currently does not work with pair fields". So replacing a tag pair with a custom replace_ function just does not work at all.

Ah. Bummer!
Well that was mostly for good measure, the option_name : Option Label was the big thing for me.

Do you have any work done for that part, or do you want me to give a go at it?

Check out this branch: https://github.com/rsanchez/entry_type/tree/feature/labels

It has :selected and :label tags, and you can do all options with a tag pair and the all_options="yes" param set. Also, now you can add short names & labels to your entry types.

Lovely! Merge it in, I say!

Merge into master, version 1.0.4