Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
161 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
189 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"> ...
1
vote
1answer
56 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
1answer
35 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 ...
1
vote
1answer
51 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
38 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
78 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
65 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 ...
1
vote
1answer
83 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
1answer
337 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
226 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
828 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
572 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
93 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
61 views

Programmatically Setting Entry Type Via Javascript

At the moment I'm trying to create a script that is supposed to be run (by chrome extension) on page load (of the new entry page) that with automatically set the entry type. The name of the entry type ...
1
vote
1answer
68 views

craft.entryRevisions.getDraftsByEntryId(entry.id) is returning an empty array

I'm trying to get the drafts for the entry on the front end to populate my plugin on the sidebar but cannot get the drafts returned with this code in a Twig template. entry is an EntryModel here. ...
1
vote
1answer
177 views

How to check for a value OR NULL on custom enddate field using yii syntax when calling entries?

I have a section of 'deals/coupons' with custom startDate and endDate. These are needed so the client can load up a bunch of deals but only have them render to the page when a particular deal is '...
1
vote
1answer
224 views

How to render an entry type of a Matrix in HTML?

<a href="{{box.learnMoreLink}}"> {{ box.learnMoreText }} </a> Currently I have a Matrix field that has two plain-text fields. I want to change the href ({{box.learnMoreLink}}) from plain-...
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
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.
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 ...
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
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 ...
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
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): &...
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....
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
72 views

Is it possible to delete entries directly from the 'All entries' listing in the control panel?

I have a couple of Channels with news entries imported from different RSS feeds. A lot of these entries have a similar topic, so it would be very nice if these entries could be deleted from the 'All ...
1
vote
1answer
256 views

Entry saving in task fails due to required assets/matrix fields being read as blank, even through they are not

I have a task that is used to collate relationship data for a specific entry and save it as JSON to a text field in that entry. Everything is working fine, except for the saving of the entry which ...
1
vote
1answer
317 views

How do you route an entry or category URI to a plugin controller?

Craft's documentation states: "If the URI matches an entry’s or category’s URI, the section’s/category group’s template will get loaded". Instead of loading the template, how can I set the route to ...
1
vote
1answer
772 views

Output descendants of current structure

I hope I worded the title correctly. I'm trying to output whatever structure's page I'm on - I want the descendants of whatever page that is. I'm currently using this, which at first appeared to work, ...
1
vote
1answer
110 views

Posting an entry without using a form?

I'd like to create a history section so logged in users can see which pages they have visited. Is there a way to post an entry without using a form? So the user does not have to click to say he has ...
1
vote
1answer
167 views

How to fetch the data from Event

I am trying to fetch the content from an event onEntrySave but I don't know how to access the entry's properties from the event. So far I have got the event handler working I would just like to fetch ...
1
vote
1answer
411 views

`entry` variable pre-populated on a frontend form

I set up a single page "Add Post" in the CP. In following the example here https://craftcms.com/docs/templating/entry-form my form title input field is pre-populated with "Add Post" This is obviously ...
1
vote
0answers
39 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
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
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 ...
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
146 views

Table attributes not customisable for nested entry sources [closed]

Using a plugin, I have added some nested entry sources to some of the default section entry sources in my site. For example: 'section:6' => [ 'label' => 'News', ... 'nested' => [...
1
vote
0answers
120 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
45 views

Can I build a 100,000 pages website with Craft? [duplicate]

I want to build a fairly large website (over 1000,000 pages and even more users) and I was wandering if Craft was made for large websites or should I look somewhere else? Do you know any examples of ...
1
vote
0answers
241 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
2answers
1k views

Entry field not outputting after {% set… %} code in template

I have an {entry.footer} field outputting just fine everywhere before {% set entry... %} Added {% endset %} tags after closing anchor tag and caused an error. Any idea what the issue is? {% extends "...
0
votes
1answer
742 views

How can I copy an entry?

How can I create a plugin that will let me copy entry? I found this question but don't have a good answer.
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 ...
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. ...