Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
69 views

Craft\Exception on saving entries having images

I have created a new entry in which user can also add images(already uploaded or new upload) I can save entry successfully if I don't add any images to it. When I add any image and try to save the ...
0
votes
1answer
58 views

User specific entries (relations)

Does anyone know how I can show a specific entry to a user (frontend)? My user field is called "gebruiker". {# Get current member e.g URL /members/1/ #} {% set currentMember = craft.users.id(craft....
0
votes
1answer
716 views

Multiple Photos/Assets in one upload entry [closed]

I'm having a bit of a problem with using craft currently. My site has a gallery section where I would like to mass-upload image files to an entry which is in the area: admin/entries/photos However, ...
0
votes
1answer
701 views

How to get the author of an entry?

I have one user group created, several users in it excludes admin. I've tested it includes admin to that user group, but with no effect. If you create an entry in channel as admin and check at front ...
0
votes
1answer
167 views

In a matrix, link to entries with a future date

This is somewhat related to this How can I display a "pending" entry in my "_entry" template? I have an 'events' section where some entries have a future date - the above link ...
0
votes
1answer
109 views

Image in entry only showing when using entry.image instead of entry.assetFieldHandle

I discovered that I can replace: {% for asset in entry.assetFieldHandle %} {{ asset.url }} -- {{ asset.width }} -- {{ asset.height }} {% endfor %} From assetFieldHandle to the name of the handle ...
0
votes
1answer
231 views

Assets Content/Fields not available until entry is saved?

I've got Asset location setup with a Photo Caption field. And a Photo Gallery field which references said Asset. When creating a new entry, I'm uploading images to the Photo Gallery field. When the ...
0
votes
1answer
172 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 ...
0
votes
1answer
148 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(['...
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 ...
0
votes
1answer
400 views

Fail in JSON using Twig

Inside a JSON template I find an entry using id, the result title can't be seen using entry.title but I can see it with entry[0].title. There is another step or encoding I have to use?
0
votes
1answer
142 views

Devmode entry variable NULL

When I'm using devmode to dump out a twig variable the site will no longer work saying that entry = NULL. This only happens when I have some twig logic at the top of my template e.g. {% set ...
0
votes
1answer
104 views

Any way to create new entry using certain entry type?

I'm thinking this isn't possible but would be nice if it were? Just wondering if you have loads of different entry types for a section then it would be nice if there was a way of creating a new entry ...
0
votes
1answer
232 views

Output Entry Type and/ or Category

Total noob here. Have managed to output entries and paginate them with this: {% paginate craft.entries.section('woods').limit(5) as entries %} {% for entry in entries %} .... {% ...
0
votes
1answer
210 views

Craft throwing an SQL error on Save when Matrix field has a lightswitch [closed]

Since updating to 2.2.2587, anytime I edit an entry by adding a block on certain Matrix fields, it throws the following error: Internal Server Error CDbCommand failed to execute the SQL statement: ...
0
votes
0answers
19 views

Query Entry where number field is conditional to value

I am trying to get entries where a specific number field is bigger than the given value. But Craft is giving me the following response: Am i missing something or is this not supported for number ...
0
votes
0answers
12 views

Override entry.url / entry.getUrl() Method

For certain entries I would like to be able to override how Craft generates the URLs to them. So I create an Entry Model in my module extending from \craft\elements\Entry and override the getUrl() ...
0
votes
0answers
36 views

Entry URLs are not returning URL with locale in the path

I set up 2 sites (locally) running Craft 3.6.7: English (Handle: english, Base URL: '/en/') German (Handle: german, Base URL: '/de/') I've made a blog section that is enabled for both languages with ...
0
votes
0answers
17 views

When creating a new entry, what controls field focus?

When I create a new entry, I noticed that the focus jumps to a field within the first matrix block. This is not something I explicitly set, I can't find anything in the documentation about what ...
0
votes
0answers
36 views

Craft 3.x Menu : Entry URLs are set by the entry

I can't change the URL? How can I use a custom URL? Here is the link to the image: https://ibb.co/bz9BYnL
0
votes
0answers
61 views

Create a New Entry with Fields Populated from an Existing Entry Table

I am still learning how to work with craft on the back end but so far I can see it is a very powerful platform! I was wondering if there is a way that within an existing entry channel say "foo&...
0
votes
0answers
28 views

how to fetch entries with custom field data matches or else that field is empty

$queryElement = Entry::find() ->section('posts') ->country(['abc', ':empty:']) ->location(['xyz', ':empty:']) ->orderBy('postDate desc') ->limit(null); here country,...
0
votes
0answers
35 views

Filter Entry Query by Category

I'm making a staff page. The entries are in the section 'people'. There are four types of staff - leadership, wardens, staff, safeguarding - so there is a category field for each 'staffCategory'. That ...
0
votes
0answers
43 views

Add additional entry fields to backend search

The search field in the craft backend entry section searches the title and slug field by default. Is it possible to add custom entry fields to this search function (in my case e.g. a custom item ...
0
votes
0answers
28 views

Images won‘t display in an entry loop

Unfortunately I'm still very new to Craft, but I have a question to which I haven't found an answer here or in the Docs or the ones I found don't seem to work: Why doesn't this entry-loop output a ...
0
votes
0answers
33 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 ...
0
votes
0answers
30 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
99 views

PHP error after adding new field

I've added many fields in the past with success but today, on my local MAMP server, after adding a new field to a Matrix and saving, I'm getting a PHP error when I try to view the entry's admin page, ...
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 ...
0
votes
0answers
169 views

Entry Form not working

I have a simple entry form on the frontend that will not save form data. After submit it returns to the form page with no errors, rather than going to the url I set in the redirect variable. I have ...
0
votes
0answers
469 views

Front End Upload Form for guests

I've put together an entry form with a front end file upload, following the excellent answer here. It works perfectly, for logged in users only. I'm wondering is this method is at all workable for ...
0
votes
0answers
102 views

Get Handle/Name of Entry's Section [duplicate]

For theming, I need to get the Section Handle for the current Entry. When using dump(entry), I see sectionId is available. This works fine: {{ entry.sectionId }} But I'm not seeing a way to get the ...
0
votes
0answers
120 views

Is it possible to access backend fields from my own field type?

I'm trying to access the value of an asset field in a backend entry form from my plugins own field type. At the moment it's looking like the following: public function prepValue($value) { $...
-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 ...
-1
votes
1answer
57 views

Entry does not publish [closed]

The Craft CMS I am using doesn't want to publish the blogs I am writing. Why?

1 2 3 4 5
6