Questions tagged [fieldtypes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
23
votes
1answer
2k views

How can my plugin generate a generic modal window in the Control Panel?

I'm working on a plugin, and it requires a modal to be displayed when the user interacts with a field of my Field Type. When the user finishes interacting with the modal, they would click "Done". ...
1
vote
1answer
665 views

Linking to Search Results

Ok what i'm trying to achieve is a set of links which have "search parameters" attached to them. Which would be a "category" and an "option.field". Then when these links are clicked they display ...
2
votes
1answer
587 views

More than one field for a fieldtype plugin

I can have many 'settings' fields for a fieldType and they're saved as a serialized string in the database. Is it possible to have more than one field for the fieldType itself? It looks like there's ...
2
votes
1answer
813 views

Limit characters in redactor wysiwyg field

I'm trying to limit the amount of characters by adding the 'limiter' plugin to the redactor field which can be found here: http://imperavi.com/redactor/plugins/limiter/ I've added the limiter.js ...
1
vote
1answer
691 views

Update User “Field Type” for Entry in Plugin

I have a channel called "Groups", with a users field type called members for the entries. I need to be able to add/remove users to the members entry field via plugin. What I've tried is: // criteria ...
10
votes
2answers
2k views

How to add more options to the 'Restrict allowed file types' settings?

I am wondering what would be the best approach to add another file type to the 'Restrict allowed file types' asset field settings? For our website specification we need to have .zip files and .pdf ...
6
votes
2answers
2k views

Custom Field Type with Multiple Values

I'd like to create a field type for my plugin called "location" with two text boxes: one that holds a coordinate for latitude, and one for longitude. I haven't figured out yet how to map those two ...
2
votes
1answer
1k views

How to populate Category field form frontend form?

I have a frontend form that has a select list for language. This field will allow for one language to be selected. In the backend I have a field set up for my entries as a category field populated by ...
1
vote
1answer
2k views

getting fields of a section (getFields())

I feel like I'm doing this wrong (looping on section fields): {% for fieldLayoutField in craft.entries.section('rentalsBulletin').getEntryTypes().first.getFieldLayout().getFields() %} {% set ...
1
vote
2answers
1k views

How to loop through matrix block fields and pull out handle and content?

Ok this is similar to a previously asked question How to display all fields belonging to current entry? However I'd like to extend this so that it deals with matrix entry types. I have the following ...