The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

yii\base\Exception - while saving nested structure entry

while saving a nested structure entry, we're having the following error. The invalid ID is the parent one. Your help is welcome. Nicolas yii\base\Exception - POST Invalid entry ID: 6518 ...
1
vote
1answer
18 views

How html title is generated in entry index page in CP

I am trying to find out how HTML title is generated in entry index page in Control Panel. i know it is generated in src/templates/_elements/element.html file by $this->hook('cp.elements.element',...
0
votes
0answers
19 views

Notification Plugin - Internal Server Error

Have tried a couple different plugins to generate a simple email notification when someone submits a Guest Form. "Guest Entries Notification" didn't do anything. It didn't display errors or send an ...
1
vote
2answers
15 views

Specific entry type in entry field

This seems like an easy question to answer but I can't seem to figure it out... I'm sure we could do it in Craft 2. Anyway, I'm trying to figure out how to only display a certain entry type in an ...
1
vote
1answer
23 views

Get entries related to selected category only and not it's ancestors

The following is using commerce product entries, but I'm reasonably sure it could be any entry. With the following category taxonomy: - Category 1 - Category 1A - Category 2 - Category 3 ... If ...
0
votes
0answers
26 views

Editing Entries are not working

I am not sure if anybody has come across this, but after clicking "Settings" in the Admin Center all of my "Pages" entries are un-editable. When I click to edit them, all that shows is the title, the ...
1
vote
1answer
14 views

Pulling blog entries related to a structure entry field type

fairly new to craftCMS. I've wrestled with this now for hours and exhausted all research avenues. I have three main "service pages" (Web Design, Digital Marketing, Hosting & Analytics) These are ...
0
votes
0answers
13 views

How to get category/entry url and a category url in entry breadcrumbs

I have entries for a channel called ‘resources’ that are related to multiple resource categories. When I call the category specific resource entries in a index, how can I get the url of website/...
0
votes
0answers
7 views

Getting charges from Charge 2 plugin based on entry field

I setup Charge 2 plugin (v2.3.0) with One-off payment. I have created a custom field with Entry type and associated with Charge content. I am trying to find out charges based on that related entry. I ...
2
votes
2answers
48 views

Change entries URL?

In ExpressionEngine was a URL field under the title field that was filled when writing the title. It was possible to change the URL to something else. Also if i want to change the title of an entry ...
0
votes
0answers
19 views

Use one entry's records in Dropdown field

Let's assume we have two sections... the 1st is topic and the 2nd is videos. I want to filter videos from topic's name. So I want to use topic name as a dropdown in the videos section. But I don't ...
0
votes
0answers
39 views

Change Dropdown Value via Module

I'm looking to change a dropdown field within an entry, then save it. I currently have a lightswitch which works perfectly, but now I need to change a dropdown field. I have the following for the ...
1
vote
1answer
32 views

When I try to edit an entry: “Unable to find 'craft\services\EntryRevisions'”

I have just moved my site onto the live server and imported my local db. It is a multi-site setup. In the Entries section of the CP, when I click on an entry to edit it I get the following error page:...
1
vote
1answer
62 views

Entry form with field translated accross multiple sites

I've got 2 sites, each with a locale (dutch - nl & french - fr). I've set up a frontend entry form that works nicely for all not translated fields, I am however struggling to get it to accept ...
1
vote
1answer
52 views

Unique URI error

I am getting the following error when trying to save a structured entry: Could not generate a unique URI based on the URI format. Title of entry is: Hells Gate Mud Bath & Spa Slug: hells-gate-...
1
vote
1answer
56 views

Get entries after a certain time

I am trying to get all entries from my events section in Craft 3 that occur after 17:00. My current code is: {% set events = craft.entries.section('events').eventStartTime('>= ' ~ '17:00'|time )....
1
vote
1answer
60 views

How would you show a specific entry 'and' its children

I'm creating a footer menu and want to show an entry id and its children, atm I'm just getting the descendants but struggling to show the parent and children as well <nav class="cell small-12"> ...
2
votes
1answer
37 views

relatedTo() only on one field?

I have a Product entry type that contains a field for Components (which are also products) and a field for Related Products (again, also Products). I want to be able to find a parent product from a ...
1
vote
1answer
33 views

How can I find entries that link to a given entry?

I'm retiring a section of my website and want to remove all existing internal links to this section. Is there an existing way to find any links to each entry in that section? These links are all in ...
1
vote
2answers
507 views

How to modify and save a field in entry on EVENT_AFTER_SAVE in a plugin?

I'm trying to build my first little plugin. I'm stuck with a problem: I need to modify the value of the specific field reference, right after the saving of the entry because the new value is supposed ...
1
vote
2answers
135 views

How can I set an entires status via ajax from a front-end form?

I am trying to set an entires status to disabled from a front-end form. Here is the click event listener I am using: $(document).on('click', '.delete', function (event) { let $this = $(event....
1
vote
1answer
32 views

Displaying gallery when viewing category page or entry with related categories - code review

I have a gallery in my site's <footer> with images that are defined in a matrix field on each of my categories. If I'm viewing a category page or an entry with related categories I want to ...
3
votes
1answer
26 views

Output values from all entries in a specific section EXCEPT those with a specific category id

Currently, this is NEARLY doing what I want except instead of the output being entries that do NOT have the id, it's output is ONLY the entries with the id. I'm not sure why, since I've included the '...
1
vote
1answer
82 views

Setting a default entry for the entry field

I have an entry field that is a selector tool for the page call to action at the bottom. I have a channel of four or five entries and I'd like one of them to be the default selection so it's one less ...
1
vote
1answer
58 views

Non-numeric characters in number field producing errors

Craft 3 is giving me this error when my client enters non-numeric characters into a number field on an entry: number_format() expects parameter 1 to be float, string given Is there a way for it to ...
2
votes
1answer
25 views

How to show entires from past 12 months?

I need to display entries from the past 12 months. I'd like to create an entry query and set the timeframe of the entries I need.
0
votes
1answer
76 views

Entry not saving when Redactor bold

I'm having a weird issue with the Rich Text Editor (Redactor -> simple.json, only "bold" and "italic") on newly added fields and only ONE (that i know of) older field. Every time i add a "bold" format ...
2
votes
1answer
51 views

Why does my entry language selection look different from examples?

All the examples look like this: Mine looks like the image below where you have to select the site from that top left dropdown and then there are some enabled things on the right:
1
vote
1answer
198 views

Unable to delete some entries

It is weird that I can delete some entires in the app but some I can't. When selecting specific entry to delete, I don't see the option to delete it. I only have "edit entry" and "view entry". In some ...
1
vote
1answer
48 views

Entries from matrix should not appear in loop

I have a Matrix with an entry field. I have a Loop which is looping entries out of a section. Goal: The entries from the matrix should not appear in the loop of the section. So the Matrix defines ...
-1
votes
1answer
29 views

Entry does not publish [closed]

The Craft CMS I am using doesn't want to publish the blogs I am writing. Why?
1
vote
1answer
37 views

Entry Form: Populate checkbox list from another entry and save options in entry

I am trying to load some options in to a checkbox list from another entry so that a user and save select them form a checkbox list but I am unable to save the Entry Form with their selection. I have ...
1
vote
1answer
32 views

How do I target the 3rd entry and only that entry?

I am trying to build an Index page and assign a specific card template to the 3rd entry and only the 3rd entry. {% set items = craft.entries.section('posts').all() %} {% for cardC in items.offset(2)...
1
vote
1answer
34 views

New entry showing under old one

I'm working on a website that was developed by someone else before me, I added a new section and template, I uploaded all my files, created my new section and field and created my first entry ...
1
vote
1answer
50 views

How to limit number of entries to a given user/user group

I have a site where users can add entries of an entry type/section called Listings. I would like to limit the number of Listings to a maximum of three per user. In another CMS I did this by writing ...
1
vote
1answer
51 views

How to get entries with or

it is possible to do like this: $users = Entry::find() ->userLevel('>3') ->or group('admin') So in database level,the sql will go like this: select * from users where users.userLevel ...
2
votes
1answer
291 views

Title field character length

Is it possible to limit the title field in an entry? As with other fields I can adjust so that it only takes a certain amount of characters.
1
vote
1answer
30 views

How to hide {{ entry.title }} on a {structure} page but show it on a {structure}/{category-slug} page

Here's the breakdown: » structure with two categories. Each category has +10 entries. » Template is structure / index.html and _entryview.html I'd like to show two links and a description of both ...
1
vote
2answers
454 views

Craft 3 multi site publish options

If a user has permission to publish on multiple sites, he by default publishes to all of them. If he wants to exclude some sites, he needs to go in each one and turn off the post for that site. This ...
0
votes
0answers
24 views

Setting an Entry field using sum

I'm looking to set a 'score' property on my "category" field, this will be done by calculating how many entries are within that category similar to a 'Trending' feature. Is there any way to set a ...
0
votes
1answer
104 views

How can I show multiple entry types in the same page

I have two entry types in a same structure, I want to get some values from these two types in a same page. Is it possible? I tried: {% set entry = craft.entries.section('businessProfile').type(['...
1
vote
1answer
241 views

How Do I Add a rel=“canonical” HTTP Header to Embedded PDF Files?

I'm working on project where I would like to directly embed PDFs onto web pages. We'll be using Google's PDF viewer as the embed tool and implementing via a macro. Here is the macro as it stands now: ...
1
vote
1answer
232 views

How can I add programmatically a Tag after SAVE_ON event in case of Assets types

We have to update the Asset after the SAVE_ON event, and the Craft::$app->elements->saveElement($asset); Not seems to be working (it is getting timed out). So what is the best pratice to ...
1
vote
1answer
201 views

How to create manually an Entry from command line

I would like to migrate content from external source to my Section model. So I have to create Entries manually. Is there any better way to do this beside this snippet from the documentation: $entry = ...
1
vote
1answer
129 views

Include the URL of a related entry field

I would like to add the URL of the channel entry I have selected (atm 2 channels are available to choose from), so I would like a url like: summerhouses/product1 or greehnouses/product2 how would ...
1
vote
1answer
505 views

Anyway to extend Craft Entry query search in Craft 3

I've had to manually do an SQL call to the get correct results but I was hoping there would be a tidier way of achieving this in Craft 3? $query = ( new Query() ) ->select('craft_content.title, ...
1
vote
1answer
342 views

Unable to update slug in Craft 3 for single enteries

I have created some entries for type single but now I am not able to update their slug even I have updated the title
1
vote
1answer
128 views

Changing first matrix block

I'm trying to target the first matrix block and changing the structure of the HTML, but nesting an IF statement within the loop but it's actually not doing anything, instead it's just displaying both ...
1
vote
1answer
72 views

Entry Count plugin performance / template optimisation

I'm using Ben Croker's Entry Count plugin in my News channel but have noticed a huge performance hit, I know its probably down to how I am loading the entries in to my template so I am looking for ...
1
vote
1answer
426 views

Craft 3: how can I set an ordered list of all sites, and set a display name different from the site name?

The Craft 3 multi-sites is very useful. However, I found the list dropdown while editing an entry confusing and awkward in my case. I have several sites group, each containing a localized version of ...