People who code: we want your input. Take the Survey

Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
559 views

Change entry status on front end

I'm going wrong here somewhere, but I have a (edit) entry form and I'd like a 'disable' field to change status. The edit form works fine but status changes are ignored. Here's my field: <input ...
1
vote
0answers
144 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
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 ...
2
votes
1answer
129 views

Checking for first time an entry is “published” i.e. saved with a Live status

Is there a way, via an Event or otherwise, to catch the first time a post is saved and isn't in disabled mode? I want to send out an email alert to users when a new entry is published, but I want it ...
3
votes
1answer
1k views

How do I get just the first entry with a 'for' loop?

I have this this code - {% for entry in craft.entries.section('news').first() %} <div class="container" id="featured-news"> <div class=col-md-6> <h2 class="news-...
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 ...
1
vote
1answer
154 views

Template backend entry form

Can the backend entry form be adjusted by a template. It's not a very compressed view. See this image It would look a lot better if I can add some float:left; to parts. See this image
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 ...
2
votes
1answer
203 views

How do I check if an Entry is new?

How can I check if an Entry was posted less than a month ago?
2
votes
1answer
384 views

Front-end form, creating a tag

Similar to the question asked here: How to add a tags-field to an entry form? I am trying to create an entry form that can create tags. I'm using http://selectize.github.io/selectize.js/ for the ...
2
votes
1answer
384 views

Can't rename slug

Each time I try to rename a slug within an entry, the page refreshes, but the slug is getting a -1 appended. The slug I want is: forms. The slug I get after saving is: forms-1. I've checked through ...
2
votes
1answer
119 views

Plugin add options to entry edition

What I'm trying to do is add two checkbox in the entry edition page, just under the dates or special notes, somewhere here : Then if the checkbox is checked, I check it with an event and perform an ...
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....
2
votes
2answers
1k views

Best way to create an entry (bio) view for a User

I think Douglas has kind of answered this here, but just to ask as a separate question: Given I have made use of Craft's User section to hold data about a company's team members, how do I now make an ...
1
vote
1answer
426 views

Linking a page in a multilanguage website

Currently i am using this approach for linking to a entry(single page) of a structure, for example a cta button on the homepage which links to the contact page. {% cache %} {% set single = craft....
2
votes
1answer
102 views

Entries not being searched in the control panel

I have a 'person' channel that does away with the title field and instead uses custom fields like so {lastName}, {firstName}. However, I've noticed that when I'm looking at the entries listing in the ...
2
votes
1answer
512 views

Error: Variable 'entry' does not exist - When adding homepage or other entry with URL

I have an existing Craft Pro installation (v2.5.2757) that I'm using to drive an application. The current install does not have a homepage or any entry associated with a URL. All requests are being ...
4
votes
1answer
715 views

How to list all existing values for a field across site

I have a huge set of entries which have a lot of fields. Say, the entry type is a 'book' and fields are 'keywords', 'year', 'authors', etc. Now I'm building a filter form which would allow user to ...
3
votes
1answer
496 views

Get draft content in front end form

I have a live entry with an 'eventTime' text field having the content '2pm'. I also have an unpublished draft saved for that same entry with the 'eventTime' field having the content '3pm'. I use the ...
6
votes
2answers
983 views

Comparing 2 versions of an entry and highlighting the changes

I'm new to Craft and I'm wondering if Craft is able to display the differences within an entry in different versions. Comparing 2 versions of the entry and highlighting the changes. Something ...
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 ...
2
votes
1answer
401 views

Assign entry id to title with entry form

I have an entry form to take user generated content. The section it passes the info to has a customised title format Submission ID: {id} However, when the entry gets submitted, the title in the CP (...
6
votes
1answer
426 views

How many entries could the Craft database hold before it slows down?

I'm pulling in some RSS feeds using Feed Me (https://github.com/engram-design/FeedMe) and turning those in entries automatically using a cron job. You can imagine that producing a lot of entries over ...
2
votes
2answers
283 views

'Create a new entry' CP is blank if matrix field exists

I set up an matrix field and put it into section type. If I am trying to create new entry a kind of broken 'Create a new entry' CP is shown up. Only title 'Create a new entry' and an broken 'save' ...
1
vote
2answers
195 views

How can I hide entries depending on which category they are associated with?

Right now, I have a staff profile page. Each person on the page has a category association (professional, leadership, student). When the students graduate, I want to add an 'alumni' category to their ...
1
vote
1answer
302 views

Listen to onSetStatus event

I wanted to listen to the onSetStatus event of the SetStatusElementAction and used the same code like in the EntryElementType class: $setStatusAction = craft()->elements->getAction('SetStatus');...
9
votes
2answers
2k views

Exclude multiple entries by their IDs

I have a structure people that I need to grab entries from. However, I need to exclude certain entries as some are already displayed on the page in a different manner. I know that you can exclude a ...
0
votes
1answer
399 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?
1
vote
1answer
278 views

Using Craft for publishing an online magazine

I was wondering if Craft is suitable for publishing online magazines. I was thinking about using a new structure for every issue/release. And entries for the actual content of an issue. Is this the ...
2
votes
3answers
2k views

Custom HTML in Rich Text Fields

I've noticed the HTML option above Rich Text Fields for entries is now gone in Craft 2.5, regardless of being configured as Default, Simple, or Standard. Is this a feature that has been removed from ...
2
votes
0answers
512 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(...
6
votes
1answer
2k views

Schedule a draft to auto publish?

Is there a way to schedule a draft of a entry to go live?
1
vote
2answers
268 views

Can you lookup the value in a key-value array with the value in an entry field?

This might be impossible, but can you lookup a value in a key-value array with the value in a craft entry field? And perform math with it in twig? I'm trying to simplify my template code. I have a ...
0
votes
1answer
731 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.
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 ...
2
votes
2answers
780 views

Order entries based on last string of title

I would like to get the last string of a entry title and order entries based on that. Basically the people title are their full names and I am trying to find their last name and filter based on that, ...
1
vote
2answers
1k views

Only display entries based on a field conditional

Hey I am trying to get 4 entries, but only want 4 that have a body length > 100. How would I accomplish this? {% for entry in craft.entries.section('artists').order('RAND()').limit(4) %} // only ...
1
vote
2answers
2k views

Set status in a plugin

I was wondering if it's possible to modify the status of an Entry within a plugin? I've tried setting the status property but I get a readonly error. $entry->status = $status
6
votes
4answers
3k views

Programmatically update entry field

I'm trying to update an entry's field value from a Craft plugin. First I was trying to just update the attributes of the entry like so: $entry->getContent()->setAttributes(array( 'metaStatus' ...
2
votes
1answer
88 views

Output tags in the order they were added to an entry

Is it possible to output tags for an entry page in the order they were added to related entry? For example on a News page I would like to output any/all tags added to the News article on the specific ...
4
votes
2answers
503 views

Entry next sibling return a deactivated entry

I got an entry template from a structured section. With prev / next nav links at entry bottom. But the next sibling is deactivated. So the page return is 404 not found ! {% set prev = entry....
1
vote
2answers
913 views

Conditional logic to add class for specific section entries

I'm trying to create a conditional logic so that the class 'white-nav-bg' is added to the element on the 'blog' section entries only. Below is the code I'm currently using to try and achieve this ...
2
votes
2answers
518 views

Unable to Update Entry - Table doesn't exist

I am trying to update an entry in a structure but getting the error: CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nisp....
2
votes
1answer
2k views

Possible to get content block from another entry?

I guess this isn't possible as it would mean the content is essentially a Global, but I would like to be able use a block from a matrix field from another entry. At the moment I have a parent page ...
2
votes
1answer
331 views

Check saved entry is a brand new entry

I have a plugin using the onBeforeSaveEntry event. Is there a simple way to check if the entry being saved is a brand new entry i.e. Add New Entry or if it currently exists and is just being updated?
0
votes
1answer
140 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
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 ...
7
votes
2answers
812 views

Get entry index - structure not channel

I want to display the current entry's index - like in this post Get entry index. However my entries are in a structure section type not a channel, so they are not ordered by date. Is is possible to ...
1
vote
1answer
138 views

Handling Endless Recursion in saveEntry?

I'm trying to update the expiry field—based on an existing field (in this case classDate)—as soon as an entry is saved. Based on this answer, the clever recursion code in carlcs' Auto Expire plugin, ...
5
votes
1answer
1k views

Save matrix block to new entry in plugin

I have been trying two separate methods to accomplish and both keep resulting in the same errors no matter what I try. The entry I am saving has a few fields the last of which is a matrix block (I am ...