Questions tagged [entry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
4
votes
2answers
762 views

Can an entry have multiple authors?

I'm trying to create a multi user blog, where multiple authors can edit the same entry. Is this possible with Craft CMS? Is there a way to assign multiple authors to an entry? I only managed to assign ...
3
votes
1answer
196 views

How do you pull a entry field in a global out in a template

I am trying to create an easy way to make a sticky post on my blog and I am using an entry field within a global. Not sure where to even start to pull this out in a template.
1
vote
1answer
264 views

What is the best way to have an entry for top-level categories?

I'm currently working on an eCommerce project with categories for products: - Category 1 - Sub-category 1 - Sub-category 2 - Sub-category 3 - Category 2 - Sub-category 1 - Sub-...
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) { $...
4
votes
1answer
1k views

Get next entry based on entry type

As an extension of this question How to link to previous/next entries in a section? If my page is set to automatically provide a entry var in my template. And I can simply access a field like this ...
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 %} .... {% ...
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 ...
4
votes
2answers
744 views

Counter for entries to show most read Articles

How can I add a counter or something similar to my entries, so that I could loop through the most read articles?
1
vote
1answer
2k views

Best way to deal with Impossible to access an attribute (“isEditable”) on a NULL variable (“”)

I've had this issue a few times & wanted to know if there is maybe a better way to deal with the following issue: Say I have this if on a page: {% if entry.isEditable %} <a href="{{ entry....
1
vote
2answers
331 views

Create new entry from related Entry field

It would be really nice to create a new entry in a section (say "Dates"-channel) direct from a related entries field in another section (say "Events"-channel). Is this possible already, or are there ...
1
vote
2answers
195 views

Targeting entries in a structure

In a structure like the following: Offices US Albuquerque [offices] Boston Chicago Denver ...
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
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 "...
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: <...
1
vote
1answer
782 views

Populate Lightswitch field from Frontend Entry Form

I have the following buttons on my frontend entry from (user editing one of their entries). The idea is to turn the lightswitch "on" (green) when entry is being marked as draft and "off" when ...
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....
3
votes
2answers
891 views

Creating Drafts from Frontend Entry Form

A two part question here. When saving an entry from front-end entry form, can I designate it to save as a draft? If so, how? If the answer to #1 is true, can I query against that to list only entries ...
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 ...
4
votes
1answer
885 views

How to track entry visit?

how do I able to track the visit number of entry? Something like track view in Expression Engine. I have try to find but don't have any source.
3
votes
2answers
1k views

How can I stop a duplicate entry being created & provide feedback?

I have a booking form on my site, which when submitted creates a new entry which has two fields: an Entries field which links to a single User, and another Entries field which links to a single Event. ...
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 ...
5
votes
2answers
1k views

Restricting access to fields based on user group

I saw this thread Check user is in User Group / Custom User Permissions had an idea. Can I use USER group to limit who can see the Author dropdown on the entries form? Is this even permitted the craft ...
6
votes
2answers
3k views

Does anyone have a working example of frontend form with multiple file upload, drag & drop etc?

I'm trying to create a frontend entry form for a logged in user, with a field to upload multiple assets to that entry. I've tried using the Jquery FileUpload plugin, but can't seem to get that working....
6
votes
1answer
2k views

Get dropdown / checkbox / multiselect field values on frontend submit

I would like to allow registered users to submit entries to sections. The documentation didn't mention how to get the values and labels of dropdown / checkbox / multiselect fields to show them as ...
6
votes
1answer
342 views

Is it possible to use the assets modal on the front end?

Part 3 of a 3 part question: I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. A missing piece to the ...
7
votes
1answer
2k views

How do you delete entries from a frontend form?

Part 2 of a 3 part question: I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. I have a frontend form ...
10
votes
1answer
2k views

How do you delete assets from a frontend form?

I am creating a proof of concept for a client in Craft where the client's customers can manage projects from the frontend of a Craft install. I have a frontend form working correctly for creating a ...
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
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 ...
3
votes
1answer
2k views

Is it possible to add an entry value to the entry URL Format?

I try to compose an entry URL for artists pages with first name and last name. Now: artists/{slug} = artists/{{ entry.title }} {slug} = {{ entry.title }} = Artist Last Name What I want to add at ...
3
votes
1answer
663 views

How can I get the requested entry from a plugin?

If I’m accessing an entry’s URL (the 4th check in Routing), how can I get the entry that the URL matched from a plugin?
5
votes
3answers
2k views

How do I get Matrix elements to copy their content across language Locales?

I returned to a site designed months ago, and added a second language to it. From the beginning, this site had prominent composition of entries out of multiple elements in their matrix, with ...
3
votes
1answer
182 views

Can a User Group Create Drafts of New Entries Only?

I'm trying to set up a workflow where I have a group of "Drafters" who can create new entries but the new entry is not published by default. I've made the following setting for this group. However, ...
15
votes
1answer
12k views

Get the current section handle

I can't help but think this is a silly/obvious question, but I'm trying to retrieve the current section handle so I can use it as a class. Maybe I'm going about it wrong, but {{ handle }} does ...

1 2 3 4 5
6