3
votes
Accepted
Channel Entries API/Model: Get created Id or Entry by Field Name
Well, logically the last submitted insert query from the API is in the channel_data table. This tables Primary Key is entry_id, so you could try this CI command after you run the save_entry method:
$...
3
votes
Accepted
Expression engine 3 -get the url of a channel entry
there is no such thing as an url in EE. You can however grab the url title like so: {url_title} however, you'll either have to do something like
<a href="(path="template_group/template"}">
(...
3
votes
Accepted
Limit number of Expression Engine Channels
No idea where you heard that tip as it's simply not true.
I've worked on sites with upwards of 15 channels without issue.
Granted, the more channels you have the more fields you will have which may ...
3
votes
Specific word choice in URL title is causing a 404 error on a page. Can anyone help?
Finally resolved this. On a whim I decided to try the URL /en and that had the same effect too so that meant it had to be language related, with the original problem being with 'de'.
In my htaccess, ...
3
votes
Accepted
Method to add multiple fields to a channel entry
Easy, I'd create a grid field with Date | Time | Location | Price.
For ease of management I'd create a separate channel for locations (manage all locations separately to stop typos and misspellings ...
3
votes
Accepted
Channel Entry link to external URL
What I'd do is set up a field (eg blog_offsite_url) to store an optional offsite URL.
Then in your link from the blog index page, use a conditional like this.
{if blog_offsite_url}
<a href="{...
3
votes
How can I add an ampersand (or similar) following all but the final entry in a Matrix loop?
I think the best way achieve this is to do by adding CSS. For that you just need to create one class pipe containing the + sign (either with an image or with color). Then put that pipe class on ...
3
votes
Channel entries vs embed files
I'm really confused by your question, but I'm going to make an attempt at clarifying some base concepts that I think you are wrongly assuming about a commercial grade CMS (content management system) ...
3
votes
Accepted
Relationship Field Conditional Not Working
Although it is technically less efficient, you should try embedding it to render as a tag in the conditional like so:
{if '{featured_movie:video_id}' != ''}
Try that. As in the docs, if it isn't ...
3
votes
Accepted
Channel Entry Model Not Saving Custom Fields
You may be using the incorrect field name. You can't access it via its short name, it has to be by it's field_id. Here is an example of how I do something like this:
// these are usually set at the ...
2
votes
Not Retrieving All Entries in Channel
You need to add the dynamic="off" parameter to your channel:entries tag
{exp:channel:entries channel="{embed:channelName}" dynamic="off" orderby="date" sort="asc"}
2
votes
Accepted
2
votes
Accepted
Limiting entry display after a conditional
Can't the numeric matching of the search parameter help you?
{exp:channel:entries channel="tours" search:departure_date=">{current_time}" limit="10" sort="asc" orderby="departure_date"}
[TEN ...
2
votes
Entries mysteriously closing
In my case Status Groups was never set in the Channel Administration section of EE. This meant when a member updated an entry, as they had no assignment to Status Groups it defaulted to Closed and did ...
2
votes
Accepted
Channel does not show entries on specific template site
Add dynamic="no" to your parameters like this
{exp:channel:entries channel="gallery_slider" category="6" limit="1" dynamic="no"}
test output
{/exp:channel:entries}
ExpressionEngine tries to ...
2
votes
Accepted
Displaying total results of channel entries
The variable which returns the total amount of entries is {absolute_results}, not {absolute_count}.
{exp:channel:entries channel="people" search:people_alpha="={segment_3}"}
{if count == 1}
&...
2
votes
Can I make a directory that lists by first letter of last name?
You could try http://gotolow.com/addons/low-alphabet as that allows you to group entries by letters (and numbers if you need).
2
votes
Accepted
Pull random 10 entries without duplicating every time when ajax calls
Two approaches come to mind, the first is to load everything (all results) and only show X at a time (JavaScript) based on your own custom pagination or lazy loading effect. But that means you'd still ...
2
votes
How to build a "featured content" system?
Have a field (checkbox or anything) called 'featured',
if you want an entry Featured check the box.
the feature template would then look for any entry that had that field checked AND had an image (...
2
votes
Accepted
call_user_func() expects parameter 1 to be a valid callback
Looks like the problem is originating from system/expressionengine/modules/channel/mod.channel.php line 2343 which returns a Closure for tagdata_loop_end and the live server doesn't understand ...
2
votes
How to Get More Entries on a Page?
set a high limit number to check, expression engine default channel limit is 100.
{exp:channel:entries channel="channel_name" limit="100"}
2
votes
Accepted
Checking the channel in the channel entries tag
try using
channel_short_name == "work"
You can find the short name in the list of channels.
Also in your channel tag, you'll need to specify both channels.
channel="work|latest"
2
votes
Accepted
Custom Template route issues
disclaimer
First things first: the documentation does not say it, but isn't advisable to use a route on the first segment. Why? I've no idea. This is something a former EllisLab developer told me.
...
2
votes
Accepted
How to refresh a "news" embed based on filter button clicked
I've done similar before and ajax is your best bet rather then refresh or link to another page.
Your home page =
<h1>Home page<h1>
<!-- Other channel calls -->
{exp:channel:entries ...
2
votes
Migrate multiple custom fields to just one Fluid Field
I am not aware of any add-on that will do this kind of transformation, but if you are comfortable working on your EE4 database directly using SQL it is certainly possible to do that way.
I had to do ...
2
votes
Accepted
Create an entry from an extension?
Yes, obviously it is possible to use the model to create a new entry. To create a new entry using model you should follow below syntax.
$entry = ee('Model')->make('ChannelEntry');
$entry->...
2
votes
Accepted
Split Channel Entries via {exp:channel:entries}
Given that your code duplicates the same HTML for each column, there is also a way to do this simply using Bootstrap to generate the columns (it looks like you are using Bootstrap from your code ...
2
votes
Accepted
CRUDL Interface for Custom Data and Files: The Correct Way
The best way would be to use the Model service to create Channel Entries and files:
https://docs.expressionengine.com/latest/development/services/model.html
This will guarantee you are saving ...
2
votes
Accepted
Model Service ChannelEntry relationship fields
I too had the same issue, the EE documentation to put it nicely is rather incomplete on this topic. Looking though the source I saw an example in ft.relationships.php:
ee('Model')->get('...
2
votes
Accepted
(A Different) Channel Entry Data Not Showing in Entry Detail Pages
It is not so clear from what you say what actually you are trying to do, but at the simplest level, it seems that while example.com/product generates output when applied to the template fragment you ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
channel-entries × 740categories × 78
channel × 77
templates × 50
ee2 × 40
entries × 40
relationships × 34
playa × 31
safecracker × 28
custom-fields × 27
search × 25
add-on × 23
conditionals × 22
stash × 18
structure × 16
pagination × 16
date × 16
matrix × 15
members × 15
grid × 15
url × 14
ee3 × 13
add-on-development × 12
tags × 12
status × 12