statikbe / craft-ctafield

Fieldtype that combines custom links, entries & classes
MIT License
0 stars 1 forks source link

Allow setting a selection condition for the entry chooser in settings #8

Closed Numkil closed 1 year ago

Numkil commented 1 year ago

Implements #7

Numkil commented 1 year ago

@HannahDeWachter

Yes that is a much more logical place to put it!

I moved the position of the setting to the Entry tab and it works fine :)

If you are happy with it we can merge!

janhenckens commented 1 year ago

Would it make sense to have a similar condition for assets or categories? If possible of course.

Numkil commented 1 year ago

Its definitely possible to implement but it will require a bit of refactoring as we will need to save all the selectionconditions seperately per ElementLinkType.

Maybe this could be a seperate PR to extend the condition to assets and categories so that we can already start using this as a basic functionality

janhenckens commented 1 year ago

@Numkil Sounds good and indeed not a big priority for now.