Questions tagged [entries-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
4answers
3k views

Programmatically update entry field

I'm trying to update an entry's field value from a Craft plugin. First I was trying to just update the attributes of the entry like so: $entry->getContent()->setAttributes(array( 'metaStatus' ...
3
votes
1answer
1k views

How can I programmatically set the value of an Entries field type?

I need to set programmatically the value of an Entries field type when I'm going to create a new entry from the admin form, after the form loads I'm searching for the entry I need to set in the ...
2
votes
1answer
166 views

How to get all (prepped) field values from an entry, indexed by field handle

Getting field values, properly prepped, is covered here: What is getContent() / the ContentModel, and how do I use it to get and set custom field values?
4
votes
2answers
2k views

Exclude “featured” entries from a “recent” entries {% for %} loop

Here's my current setup: Blog (Channel) - All of my blog posts will go here Blog Landing (Single) - This section only has one field - a Featured Articles Entries field that lets me select 3 entries ...
3
votes
1answer
1k views

Get related entries from matrix field

I have a matrix field with one block type. In that block type, I have one field that is a related entries field. How do I access the title from the related entries field from the matrix field? Here ...
1
vote
1answer
236 views

Plugin to maintain data integrity between related entries?

I would like to develop a plugin to help better maintain data integrity between related records. Something like the following: When deleting an entry, check whether the entry has "reverse related ...