Questions tagged [fieldtypes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
320 views

Prepping a field's value from a fieldtype before it hits Craft\BaseModel->__set()

I'm trying to create a FieldType that takes a POSTed day/month/year array and saves it into a datetime column, but I think because of the column type it's tripping up before it ever gets to ...
4
votes
2answers
1k views

Is it possible to change the time increments in the Date/Time field?

We have a date/time field shown to render the time for a series of workshops but right now Craft only increments in 30 minutes. Is there a way for us to render 15 minute increments?
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 ...
5
votes
1answer
883 views

Can I have a textarea field which isn't rich text?

I have a rich text field that I don't want wrapped in anything. I just want a text area field, but I'm not sure how to get a text area without making it rich text, as the only multiline text field ...
1
vote
3answers
292 views

Why am I getting “no sources available” when adding/editing a field of type Assets?

Anyone else suffering from this issue after doing an upgrade/update? This may be in the category of bugs because it appeared to be working earlier today before upgrading Craft from the Free version ...
4
votes
1answer
90 views

Using ElementType as field type for plugin in what way do I provide my own data to the modal?

I have been looking at the BaseElementFieldType.php file to try and understand how to use it for my own field type. How do I provide that field type with my own array of data to use? I believe it has ...
3
votes
2answers
693 views

Submitting checkbox data from a front-end form for a 'Categories' Field Type

I have read a few docs about front-end forms such as the Checkbox field docs. Although that doc doesn't seem to give an example of what I need. I have a 'categories' field type. I am creating a ...
2
votes
3answers
1k views

Plugin for entries table field

In Craft we have the table field type and each column can have a type. This field type is restricted to only text, number and checkboxes. Is there a plugin to add entries field type to the column ...
2
votes
1answer
93 views

Is this Garnish message bad? “Element was added to more than one selector”

My plugin has a field type. When I'm editing an entry which uses that field type, this message gets logged to the console: Element was added to more than one selector I can tell that it's Garnish ...
9
votes
1answer
730 views

How can I add a RichText-Field to my plugin's CP-section?

I'm trying to add a redactor richtext field to one of my plugin templates in the CP. I found macros for every field in craft/app/templates/_includes/forms, but a richtext macro is missing. I assume ...
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". ...
4
votes
2answers
456 views

When creating a fieldtype how do I provide methods to be used in the templates?

I have created a fieldtype that saves a single integer to the database, it has some settings that defines the maximum value that integer can be: protected function defineSettings() { return array( ...

1 2
3