Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
217 views

Pre populated New Entry

Is there a way to pre-populate the 'New Entry' form in the back end? The context here is a calendar where you can click on a day and see a list of events and have a "New Event" button. The "New ...
3
votes
1answer
377 views

Saving entries in admin panel

I have a problem with the admin panel being very slow when saving an entry. It takes about 30 seconds to save an entry. I use a matrix for the different part of the entry (imgs, textfields, titles and ...
3
votes
1answer
109 views

Many versions of the same structure of entries?

If I had a structure representing the user guide of a product; is it possible to select a specific version of user guide entries from a URL? http://www.example.com/myproduct/docs/v2.0/installation ...
2
votes
2answers
2k views

How to filter entries based on Tags

I am working on a site that requires a filter option based on tags. Each entry will have two sets of tags (e.g., colors and shapes) {% for tag in craft.tags.group('colorTag') %} {% for tag in craft....
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
2answers
789 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, ...
2
votes
2answers
2k views

Get the ID of a new entry when it's saved

Is there a way to save a new entry with a template form, then pass the ID of that new entry along to the redirect location? The use case is, I'm interacting with a scheduling service and want to ...
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 ...
2
votes
1answer
336 views

Update entry.body from Plugin

I'd like to run the entry.body content through some PHP functions before the template outputs it, there probably two approaches to this: Create a twig function via Plug (if possible) and use that in ...
2
votes
2answers
1k views

What's the best way to link to an entry in a template?

I have the following code and I'm looking for the best way to link to another entry page. <a href="#" class="btn-quote">request a quote</a> I tried something like this with no luck: <...
2
votes
2answers
465 views

Using a loop in a loop, how do I check if child loop is empty to not display parent loop?

I'm trying to display a list of names alphabetically ordered. This is working fine, but I also want to check if the name is intoCollection or not (using a Lightswitch). If it is intoCollection, it ...
2
votes
2answers
4k views

Checking for an object, based on a string, using Twig

Is there a way—using Twig—to check if a variable is set based on a string of the same name? In this example below, editLink.object is a string with the value of "entryAlias". I want to check to see ...
2
votes
2answers
1k views

Title Format - Auto Generation via linked entry

Finally hopping back into Craft to finish a large project, and am loving so many of the new features added! One thing I am using extensively is the Title Format feature. For one of my entry types, my ...
2
votes
1answer
279 views

Front End Asset Management - Upload New Photos without Deleting/Overriding Existing

I'm trying to create a front end system where users can create and manage listings with multiple photos. Everything saves as a draft until approved by an admin. In the front end edit page, uploading ...
2
votes
1answer
843 views

Updating an entry record programatically?

I need to update the value of an entry attribute programatically. I've tried a couple things, but the record is not updated. The code I am using is below. $criteria = craft()->elements->...
2
votes
1answer
579 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 ...
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
337 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?
2
votes
1answer
129 views

Pulling Data Across Entry Types

On our play pages (ex. http://actors-express.com.s102768.gridserver.com/plays/liaisons), we list our each of the cast members, their headshot and role. We did this by creating a matrix field that ...
2
votes
1answer
169 views

Is there a way to output more Matrix fields than one?

I'm struggling to get an element criteria model of more matrix fields at once for entry related to tagField. Example: I have two matrixFields, where I want them in {% for block in entry....
2
votes
1answer
1k views

Creating a related content subpage to a channel entry?

For a project I'm working on I have set up several channels that are related to each other. What the setup comes down to is the following: Channels: Projects |- News relations (news is a channel and ...
2
votes
1answer
896 views

Matrix Entry URL Link

Trying to create a page link to entries and can't figure out how to do it. Here's what I have. It's just outputting the title, but not the url. Specifically, I'm talking about {{ block.pageLink....
2
votes
2answers
160 views

Status of links to entries in body copy

Is it possible to check the status of entries linked to in content from the Rich Text field? For example, the user might create a link in a paragraph to an entry that is in draft status. I would like ...
2
votes
1answer
2k views

How do I create a list of categories and display the entries relating to each of these categories that have at least one entry?

Here's a summary of what I try to do: I created a Single page with a specific template where I want to display a list of partners I created a group of Categories to define all types of partners All ...
2
votes
1answer
56 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:
2
votes
1answer
610 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 ...
2
votes
2answers
61 views

Re-using includes when the object type changes (entry vs block) - what is the best method?

So I am trying to reuse some include files built for a matrix builder that are also in some instances used as stand alone fields (Video, Downloads etc). The way I have coded this is that the object/...
2
votes
1answer
405 views

Possible to redirect elsewhere after saving an entry?

I'm editing an entry in the CP... mysite.com/admin/entries/mySection/33-my-awesome-entry Now when I save this entry, it will redirect me back to the entry index page. However, I'd like to override ...
2
votes
1answer
1k views

Redirecting “if entry is not defined” returns 404 instead

All the documentation, and answers here say this should work... But it returns the 404 instead of redirecting and I can't figure out why? Section: Structure = help Entry URL Format: Top-Level ...
2
votes
1answer
396 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
471 views

Include single entry type with custom parameters in the for loop within multiple entry types

I have several entry types, where I want to set a special element criteria for the entryTypeHandleX entry type, and simultaneously loop through all entry types included entryTypeHandleX. The criteria ...
2
votes
2answers
116 views

Tagging and Associating Photos with Entry Type

We have hundreds of photos on our theater website from past performances. In order to sustainably manage the relationship between cast members and which photos they were in, we wanted to explore ...
2
votes
2answers
348 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 ...
2
votes
1answer
58 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 ...
2
votes
1answer
41 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.
2
votes
1answer
540 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 ...
2
votes
1answer
472 views

Front End Editing with Entry From

I need to allow store managers to edit their store. I'm most of the way there and have the title field and a couple of other plain text fields set up. However there isn't any documentation available ...
2
votes
1answer
40 views

When posting entries, how do I post tags as well as the title and url?

I'm trying to create a post where in the entry loop I can also post tags. <a href="URL">TITLE</a> TAGS But in my current understanding there's no way to get the post's tags where I'd ...
2
votes
1answer
59 views

Populating TAG page when using the kebab filter

I have a page that displays entries based on a specific tag. It works well until I apply the kebab filter. Here's my link to the page: {% for tag in tag %} <li><a href="{{ siteUrl }}...
2
votes
1answer
130 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 ...
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
392 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
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 ...
2
votes
1answer
106 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
516 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 ...
2
votes
1answer
405 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 (...
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' ...
2
votes
2answers
527 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
110 views

404 when clicking on the Disqus embed urls

I've just noticed on a site that the Disqus comment embed is suggesting other articles but they're adding a token to the end of the URL, for example: http://australia.thegospelcoalition.org/article/...
2
votes
1answer
278 views

Find an authorId based on first and/or last name

Is there a way I can reverse use the User Model to return an authorId based on the first/last name (John Doe)? Basically, I'm converting the first/last to a readable URI segment (using email ...