Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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 ...
stuartmcd69's user avatar
  • 3,163
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, ...
Adam's user avatar
  • 411
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"}"> (...
Jelle Dijkstra's user avatar
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 ...
stuartmcd69's user avatar
  • 3,163
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: $...
jrothafer's user avatar
  • 5,900
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="{...
Alex Kendrick's user avatar
  • 7,961
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 ...
Harsh Barach's user avatar
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) ...
jrothafer's user avatar
  • 5,900
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 ...
jrothafer's user avatar
  • 5,900
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 ...
jrothafer's user avatar
  • 5,900
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"}
Lloyd_07's user avatar
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 ...
William Isted's user avatar
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. ...
Sobral's user avatar
  • 6,108
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 ...
stuartmcd69's user avatar
  • 3,163
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"
Jim Wyse's user avatar
  • 1,987
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 ...
JCOGS Design's user avatar
  • 3,585
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->...
Harsh Barach's user avatar
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 ...
JCOGS Design's user avatar
  • 3,585
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 ...
jrothafer's user avatar
  • 5,900
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('...
Jon Rhoades's user avatar
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 ...
JCOGS Design's user avatar
  • 3,585
2 votes

Channel Entry Model how do I get file url in grid field?

You've probably already found a workaround to this, but thought I'd throw in my 2¢ for others that are trying to get models to work. Models seem to be decent to use if you're doing simple things with ...
colbinator's user avatar
2 votes

List entries which have no category assigned

Something like this maybe? {exp:channel:entries category_group="not 1|2|3|4"}
Jelle Dijkstra's user avatar
2 votes
Accepted

Unable to edit any existing entries on EE2 to EE5 upgrade

Have a look in the exp_statuses table and make sure the highlight color has 6 digits, just in case it is blank
Jez Swinscoe's user avatar
2 votes

Channel entries search by custom field

The channel entries call you are using to retrieve the custom field would need some more parameters to work - you need to give it some sort of channel or entry information for EE to work out what ...
JCOGS Design's user avatar
  • 3,585
2 votes

Conditional in Head to detect channel

Figured it out. I needed to specify the channels at the top of the loop. <head> {exp:channel:entries limit="1" channel="recipe|blog_post" } {if channel_short_name == "...
Edward's user avatar
  • 133
1 vote

How can I list channel entries with same relationship to another channel?

I'm pretty sure that this example pulled right from the relationships docs will work for you: {exp:channel:entries channel="hotels"} {hotel_destination} {hotel_destination:siblings field="...
Derek Hogue's user avatar
  • 17.4k
1 vote

How to edit channel entries in expression engine depending on the order they are displayed

You could also use {switch} to vary the div classes. Not sure if this is a better way, but its an alternative to if/else <div class="col-md-{switch='4|3|3|3|3|2|2|2'}"> Just remember that ...
pixldev's user avatar
  • 589
1 vote
Accepted

how to display a row # when looping through 2 different custom fields

yes.. Php was the way to go here in the template. I created a php variable set to 1 and then within each loop I just incremented it and spit out the php variable so it kept a 1-10 list and never ...
Chief's user avatar
  • 117
1 vote

Show different content based on url segement

Your syntax is accurate; products/product-detail should be embedded if segment_3 has a value. Perhaps you need to pass data into the embedded template? Something like: {embed="products/product-...
Will Diaz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible