Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
60 views

List entries from different locales using localeEnabled

I have two locales (de, en) and a set of entries. Some have only the german locale enabled, some only the english one. Some have both enabled. Those entries have a status of "live". What I want to ...
1
vote
1answer
2k views

How to save a new entry with custom fields - Craft 3

I'm trying to create a new Entry via PHP, with custom fields (Craft 3). I can save it, however my custom fields don't appear. I've tried using setFieldValue, as well as $entry->excerpt = 'Lorem...';...
1
vote
2answers
481 views

Get a specific entry by its index or number?

I'm working with a carousel that has two rows. Each item in the carousel displays an icon for a "media partner". This works all fine and dandy until there's an odd number of media partners, because ...
1
vote
1answer
553 views

How to change the Entry status to enabled from Disabled

I have created a page where user creates an entry but its status is disabled. This page then redirects to a page where the user gets to see a preview of his entry. On this preview page there are two ...
-1
votes
1answer
1k views

How to create an entry

I come from a Node/React/Angular background and am entirely new to CMSs and for the life of me can't figure out how to post an entry. I'm on the Entries page, and have one that I can edit, but how do ...
2
votes
1answer
64 views

Save same Entry more than once with help of custom relations field

Is it possible to save the same Entry (red arrow) twice/more than once in one custom relations field? "Test Playlist" is a entry in a channel. Background: I have set up a playlist, where an entry ...
1
vote
1answer
1k views

Frontend form with relation to an entry

I have a field called "assetId" from Entry "A" with Field Type "Entries" and Source "B". How can I build a form so that a relation between these two entries will be established. In the craft backend ...
4
votes
1answer
199 views

Limit a field to entries by entry type

Is it possible to have an "entries" field but only allow selection to entries of a specific "entry type" within craft? I'm trying to use entry types as a sort of way to enable interfaces with chunks ...
1
vote
1answer
471 views

How do I set my siteURL instead of having http://localhost:8888/?

I downloaded and installed Craft Personal on my computer and choose /websitetest/ as my website name. I used MAMP and phpMyAdmin to create a database. Still to access my website the url is http://...
1
vote
1answer
386 views

Is it possible to duplicate a entry as a draft entry?

I need a function to duplicate an (published) entry as a draft entry. Now if I duplicate an entry it will immediately publics that entry an that fires some plugin events (sends mails) I didn't want.
2
votes
1answer
405 views

Possible to redirect elsewhere after saving an entry?

I'm editing an entry in the CP... mysite.com/admin/entries/mySection/33-my-awesome-entry Now when I save this entry, it will redirect me back to the entry index page. However, I'd like to override ...
1
vote
1answer
194 views

How to use category in auto generated title?

I have an entry which has a category field. I want an auto-generated title for this entry that uses the assigned category title (first category title in case of multiple categories). I am not sure ...
1
vote
1answer
2k views

How to get Image/Asset URL in Matrix?

I have got a problem with an asset field in a Matrix in an _entry template. The Matrix is for a step-by-step feature. Each step has his own image. So the asset field in my Matrix calls: stepImage. ...
1
vote
2answers
159 views

Need help with dynamic image grid

I am trying to make my image grid form out dynamically. I got it kinda working, But I need to figure out how to make my grid rows dynamic. I am kinda forcing it to start a new row at every 4th item ...
2
votes
1answer
58 views

Structure question (entry in entry?)

Let's say I have an auction website: 'Ads' would be a section -> channel The ads in it would be entries in the channel Let's say guest users can make an offer on the action/ad. I would like to save ...
3
votes
2answers
112 views

How to show variations of a single entry? Even possible?

We are building a Commercial Real Estate site for a fairly large commercial real estate company and we're coming from an older custom-built site and there is a work flow and associated data logic we'...
4
votes
2answers
710 views

Multiple URL's for news entry?

For news entries I want both URL's www.example.com/news/678 (where 678 stands for the entry id) and www.example.com/news/some-slug to load the same entry. www.example.com/news/some-slug works fine ...
2
votes
1answer
40 views

When posting entries, how do I post tags as well as the title and url?

I'm trying to create a post where in the entry loop I can also post tags. <a href="URL">TITLE</a> TAGS But in my current understanding there's no way to get the post's tags where I'd ...
4
votes
1answer
547 views

Use global values in the Entry URL Format field

I'm trying to use global variables in Entry URLs generated by Craft, but they seem to be empty. Not getting any errors as such, just null. My Entry URL format looks like this: {{siteDefaults....
1
vote
1answer
329 views

Random posts displayed but exclude current entry ID

I am brand new to Craft and can't find much support on this problem online. I have my entry pages and at the bottom of them, I have a div with the code below in it which randomly links to any entry. ...
1
vote
1answer
143 views

What other properties are in the “entry.image” object?

So this may be a stupid question, but I've sort of never wrapped my head around it. When fetching an image from an entry -- even if there's only one associated with the field -- you can't just do: {% ...
1
vote
2answers
1k views

How to limit the amount of entries that is output when limit doesn't work

I'm trying to limit the amount of entries on my page. Currently I want 1 news entry (based on if the checkbox is ticked, there could be 10 entries with the checkbox ticked but I only want to show 1 (...
1
vote
1answer
504 views

Is it possible to view entries in admin panel list view with specific field?

I want to add a checkbox field to all my entries. But the key factor being that if 3 entries from 100 have this checkbox enabled, the 3 entries will show in the list of 100+ entries with a specific ...
0
votes
1answer
61 views

Kind of virtual entries possible?

we are currently working on a website with an event calendar on it. The events should be filterable by categories and dates of course. Some of these events are repeated on another date. Now we are ...
1
vote
0answers
467 views

Duplicating multi-language entry

How can I duplicate an existing multi-language entry with all the translated content? When I choose 'Save as new items' when editing an entry, only the content in the language I selected is copied to ...
3
votes
1answer
148 views

Grouping related fields together

Is there a mechanism for grouping related fields in an entry besides: a) putting them in a tab - which I generally reserve to group fields at a higher order (e.g content/data/meta) b) putting related ...
2
votes
1answer
59 views

Populating TAG page when using the kebab filter

I have a page that displays entries based on a specific tag. It works well until I apply the kebab filter. Here's my link to the page: {% for tag in tag %} <li><a href="{{ siteUrl }}...
1
vote
1answer
258 views

Disabled entries showing up

On the following screenshot the image on the right called Crown Wood - Plot 1 is disabled in the CMS, so I'd like it not to show up in the results. Below is my code. I added .status('live') to the ...
1
vote
1answer
995 views

Conditional check if Matrix block field is empty (no content)

I'm having a difficult time with what seems like a fairly straightforward problem: I'm listing businesses and their related hours of operation (days/times). I'd like to set up a conditional statement ...
5
votes
1answer
383 views

How do I allow a user to remove an uploaded asset from a front-end entry form?

I see for users, I can add a hidden field <input type="hidden" name="deleteUserPhoto" value="1" /> to remove the uploaded photo, however I need to allow this functionality for an assets field in ...
2
votes
2answers
2k views

How to filter entries based on Tags

I am working on a site that requires a filter option based on tags. Each entry will have two sets of tags (e.g., colors and shapes) {% for tag in craft.tags.group('colorTag') %} {% for tag in craft....
1
vote
1answer
361 views

Change domain in entry.url

I have a group website which has a main site and 3 sub sites all within 1 Craft Installation. Each sub site has its own Structure Section for Content. I am adding a Group Wide Search to the main site ...
1
vote
1answer
174 views

Listing related entries to a section

I have two sections: 'reviews' and 'games'. Games has an field called 'GamesReviews' which is type entries and points to 'reviews'. An example of a games entry is located at: http://www....
1
vote
1answer
58 views

Conditionals and outputting tables

Need a hand on a conditional to see if my table has any data, and if it does, output the table. The second thing I need help is the code to output the table. When I look at tutorials, they always ...
0
votes
2answers
375 views

Loop through related section's entries

I have two sections: games publishers For example, a games entry title would be "Mario Brothers" and a publishers entry title would be "Nintendo" On the entry page for Nintendo, I want to display ...
1
vote
1answer
614 views

frontend form action: save as draft or publish

in my frontend entry form I have a "save as draft" submit button. The current action for this form is the following, which saves the entry submitted through the form as a draft (status: disabled): &...
0
votes
0answers
70 views

Form Error Causes Page to Reload Without an Entry ID

I have a section (single) that uses a template that shows information from the entry and includes a form (uses entry form) that posts to a different section (event registration info). All is fine as ...
2
votes
1answer
279 views

Front End Asset Management - Upload New Photos without Deleting/Overriding Existing

I'm trying to create a front end system where users can create and manage listings with multiple photos. Everything saves as a draft until approved by an admin. In the front end edit page, uploading ...
0
votes
1answer
45 views

Matrix field freezes on localhost when I try to make a new entry

I have a simple Matrix field that includes two sub-fields: a one line plain text field, and a multi-line plain text field. When I try to create an entry Craft freezes at the Create New Entry screen. ...
1
vote
0answers
74 views

Get Related entries from Category besides the category of the entry itself

I have two types of related entries for the current entry. Category: Interviews -> Photographer Interviews -> Skateboarder Interviews -> Filmer Interviews -> Owner I am now on an entry with the ...
1
vote
1answer
154 views

Tags via AJAX actionTrigger

I pretty much followed this and the answer there really helped me a lot so far. Currently I'm stuck with either a 500 (Internal Server Error) or a 400 (Bad Request) Error. My craft/storage/runtime/...
1
vote
2answers
982 views

Editing entry in front-end

I am trying to edit an entry automatically when you press a button. Is there a way to do this? A bit more detail: I have listed up a few entries, each with their own button. When I press the button ...
1
vote
1answer
252 views

craft.request.getParam('entryId') returns null on edit page of an entry

I have a plugin that's loaded on the edit page of an entry. Whenever I open the entry edit page, I would like to retrieve the id of this particular entry. I've tried this: {% set someId = craft....
2
votes
1answer
1k views

Redirecting “if entry is not defined” returns 404 instead

All the documentation, and answers here say this should work... But it returns the 404 instead of redirecting and I can't figure out why? Section: Structure = help Entry URL Format: Top-Level ...
1
vote
1answer
154 views

Find related entries from section entry Matrix entry field

In my projects section, each project entry has a Entry field in a Matrix. The Entry field references a tool. On the tool entry page I am trying to display all the projects that use that tool in their ...
1
vote
1answer
876 views

Comparing current date to multiple entry matrix date fields

I need to display an entry only if the date fields within its Matrix are current. So, only display if the startDate is greater than or equal to today and the endDate is less than or equal to today. ...
2
votes
1answer
515 views

Display text field from Matrix of an Entry Field in Matrix

Question is similar to some others I've looked through but their solutions don't work as there are some differences. Currently this doesn't output any of the fields I try to access within the ...
1
vote
1answer
116 views

How to layout a tabbed div

After playing around with Craft CMS for awhile I'm a little curious how some of you would approach this. How would you add a tabbed div to an entry? An example of the tab div below, it's the first ...
1
vote
1answer
229 views

Inline help text for entries

As a content strategist, I'm trying to take the memory and guesswork out of my client's experience while updating the site (check out this great article, "Training the CMS"). Field instructions are ...
2
votes
1answer
843 views

Updating an entry record programatically?

I need to update the value of an entry attribute programatically. I've tried a couple things, but the record is not updated. The code I am using is below. $criteria = craft()->elements->...