All Questions
Tagged with custom-fields add-on-development
8 questions
0
votes
1
answer
100
views
Update Grid Fields data Programmatically
I have a channel entry with the "images" field.
The field type is Grid.
What I'm trying to do is add a few pictures in the field through PHP.
I'm using this query to fetch the entry:
$entry =...
0
votes
1
answer
41
views
Custom Fieldtype: How to check save($data)
Developing a custom fieldtype and having trouble getting the entry data to save to the exp_channel_data table. I know that the data passed must be a string and I am trying to catch the data at the ...
0
votes
1
answer
66
views
Custom fieldtype: tag pair and replace_tag_catchall()
I'm building a new fieldtype which should be used with:
single tag:
{myfield}
...which correctly calls replace_tag() method
single tag with modifier:
{myfield:modifier}
...which correctly calls ...
1
vote
1
answer
66
views
Prevent multiple add_to_head() calls
In function display_field(), if a fieldtype needs to use ee()->cp->add_to_head('/path/to/foo.css') and ee()->cp->add_to_foot('/path/to/bar.js'), how can I get it to do so only once, even ...
0
votes
0
answers
44
views
How do I get the resized version of an image in a fieldtype plugin?
I have a custom fieldtype on my site which allows you to upload an image and draw on it. However, while the site uses a resized version of the image, the fieldtype displays the full-sized version when ...
1
vote
0
answers
94
views
Custom field and params with enters [closed]
Currently working on a custom fieldtype, but facing a little nasty problem;
Is it possible to parse any custom field with params the following way (with enters):
{gmaps_field_extension
param1=""
...
3
votes
1
answer
122
views
How to separate view from `display_field` of a custom field type?
I am implementing a custom field type which has quite a complex display_field function. I would like to separate the view logic and at the moment I have done the following:
function display_field($...
4
votes
3
answers
931
views
Pre-fill matrix field when creating new entry?
How can I pre-fill a matrix field when creating a new channel entry.
The reason to do this (and why a matrix field is needed) is:
Data is best entered and represented using a table.
Unwanted rows ...