Questions tagged [entries-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
699 views

Get matrix entries related to an image asset via specific field

I have a Matrix field that has an Entries field. I want to get those entries, in the selected order, removing entries that don’t have an image asset assigned to the pageImage field. Attempt 1 Gets ...
3
votes
1answer
137 views

How can I select channel index/root pages from an Entries Field Type?

This seems like a somewhat overlooked feature. When I use an "Entries" field type with "All" sources selected. I don't have the option to select the root link for any of the channels. I can select the ...
1
vote
1answer
512 views

How can you retrieve entries with a specific locale in a plugin?

I have this: $this->requireAjaxRequest(); $segments = craft()->request->getActionSegments(); $lang = $segments[2]; $entryId = $segments[3]; $entry = craft()->entries->getEntryById( ...
6
votes
1answer
1k views

How do I use a Dropdown 'Entries' Field Type in a Front End Form

I have an Entries field that I need to have as a drop-down field in my front-end form. The code below is displaying the correct options, although after selecting and submitting the form, the ...
3
votes
1answer
2k views

How could I have a plugin hook into when I edit or update a post?

What I am trying to do is have my plugin know when I edit a post that is part of a particular section - let's call it "parts" - which then checks to see if a field is filled out in the form and then ...
2
votes
1answer
2k views

Checking if a matrix field with entries has more than one entry

In my HTML-prototype I have two ways of showing a module of employees. One version shows one employee, and the other shows two. To build this in Craft I have setup a Matrix field (with a handle ...
4
votes
2answers
843 views

How to use a global variable in a conditional statement if an entries relation field is empty?

{% if entry.fieldHandle %} {{ entry.fieldHandle}} {% else %} {{ global.fieldHandle}} {% endif %} Doesn't seem to be rendering for me. The entry field shows up when it's true, but the global field ...
4
votes
1answer
904 views

What's the best way to paginate through entries from an entries field type?

I have an entries field type associated with a structure section page. This displays the entries on this page in a particular order. When you click an entry link ti will take you to a detailed page ...

1 2
3