Jump to content

Use cases for FieldtypeSelector in templates


isellsoap
 Share

Recommended Posts

Today I discovered the module FieldtypeSelector and at first sight I didn’t know how to make use of a field of this type inside a template, respectively if there are good and smart use cases for it (I’m sure there are). Do you know of any?

(Interestingly enough I could not find a single blog or forum topic/post discussing this module in the context of template development.)

I would be also interested in some (pseudo-)code examples to get a better idea of how I could integrate this field type in my template workflow. Thanks a lot in advance.

Link to comment
Share on other sites

There's not much to find about it, as it's not a very old Fieldtype. Ryan released it, if I remember correctly, together with ProcessLister. That module makes seemingly the most prominent use of the fieldtype. Maybe it takes a topic like this, to make people more aware of it and it's usecases.

Link to comment
Share on other sites

Like I mentioned at Twitter - we at Avoine use it mostly at backend page filtering, but I have used it twice on templates. First time was related content kind of solution and other was custom RSS feed builder.

Link to comment
Share on other sites

this tutorial shows an application of the field:

https://processwire.com/talk/topic/8635-simple-example-for-widget-management/?p=83418

whereby the user is able to select what pages a widget shows on, using a selector, or series of selectors..

so in this scenario, a widget can end up showing under some very complex/flexible circumstances, such as:

- all child pages of a particular page

- selected pages

almost anything you can think of in terms of selecting a page with the selector api

  • Like 5
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...