Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 =...
Afifa's user avatar
  • 1
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 ...
W3bGuy's user avatar
  • 1,610
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 ...
pvledoux's user avatar
  • 442
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 ...
Sandwich's user avatar
  • 542
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 ...
ninjachicken1's user avatar
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="" ...
Reinos's user avatar
  • 525
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($...
Lea Hayes's user avatar
  • 1,466
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 ...
Lea Hayes's user avatar
  • 1,466