Questions tagged [entry]
The entry tag has no usage guidance.
25
questions with no upvoted or accepted answers
2
votes
0answers
507 views
Updating a single custom field within an Entry
I've got the beginnings of a simple plugin to track views of an article page, just an entry with custom fields including 'dataViews' used below.
Within Twig:
{% do craft.demoPlugin.incrementView(...
2
votes
0answers
666 views
Asset dynamic subfolder paths referencing entry section not available until saved
I have an asset field within a matrix block, for which uploads are restricted to a single folder. The upload location path is set to {owner.section.handle}/{owner.slug}. Using this pattern the asset ...
1
vote
0answers
37 views
Craft Table/Tabular static entry input field
Is there a way to set up a Craft CMS entry field to have a table with predefined rows and columns?
I have tried with the native Craft Table field, but it allows users to add rows or edit default ...
1
vote
0answers
37 views
Share: Getting 'Forbidden' message when sharing externally
I've run into an odd issue and I can't seem to figure out what is going on.
Normal Process:
I click the Share arrow on a disabled entry.
I copy the tokenized link and send it out.
Folks without ...
1
vote
0answers
59 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
0answers
455 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 ...
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
0answers
118 views
Compose entry URL with hierarchy
Iām moving new project from Wordpress to Craft, which has the hierarchy in URLs.
Iām try to compose URL for this new project:
New category field have an option "Limit the number of selectable ...
1
vote
0answers
240 views
Get entries using Multi-Select Field as Criteria
When querying for entries, I'm stuck on how to query for "selected" fields.
The query I'm using:
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->section('athletes'...
0
votes
0answers
13 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
35 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
58 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
28 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
30 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
9 views
Is there a way to sync/migrate the entry under category's entry to that entry's category at the entries
The admin had assigned all the entries to a category under the 'Categories' page. But now instead of adding the entry under the 'Categories' page, the admin prefers to add the category under the '...
0
votes
0answers
17 views
Sort entry query by their table of values if said values are in a separate array of values
Morning (in the UK at least) - I'm trying to sort/order/filter an entry query by an array of values.
The array is a list of IDs (e.g. [2,7,8]), and inside each entry is a table with a list of IDs that ...
0
votes
0answers
26 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
28 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
0answers
66 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
165 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
465 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
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)
{
$...