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

Questions tagged [entry-type]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
232 views

Error while trying to use dynamic routing to pass variables to the template and using them

So i'm trying to pass the variables from a dynamic route to a template and then to use those variables to filter trough entries. the catch is that the same template is used to display an "organic"(by ...
2
votes
1answer
549 views

check if a route segment matches a section entry type

So i added a route to a template that shows entries by entry types. the way the template does it is by taking the last segment of the url, and using it as an entry slug for this filter: craft.entries....
1
vote
1answer
98 views

Is it possible to create a page that shows only a specific post type with its own url?

I have a website with a shop section with the following URL structure: homepage/shop/category/the-product. I would like to add a page after the category to filter between post types within that ...
4
votes
1answer
614 views

Set Structure Parent when creating Entry in Plugin

I have Structure-type Section for entries and want to pragmatically populate a large list of multi-tiered entries. I see you can create an entry like: $entry = new EntryModel(); $entry->...
2
votes
1answer
725 views

Is it possible to create a field group that can be modified across entry types?

Sorry if this is asked/answered elsewhere. I tried to search for it with no success. Suppose I have a common group of fields that I want to include in different entry types, and each entry will have ...
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
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 ...
1
vote
1answer
3k views

Evaluating the if statement in entryType

I have this simple the loop, and want to assign a unique code, if condition is met. {% paginate craft.entries.section().type().limit(20) as entriesOnPage %} {% for entry in entriesOnPage %} {{ ...
2
votes
1answer
246 views

Dropdown menu out of entry types

There is the one way to build it, I could know, but It's complicated for maintenance, because I may add some new entry by time. I'm trying to figure out a better way to have entry types related to a ...
3
votes
1answer
634 views

Linking to channel via structure section

I apologize for opening up a whole new question for this topic since it's been discussed a few times now, however I don't have enough rep yet to comment on the existing questions. Regarding the ...
0
votes
1answer
202 views

Order of draggable entries and assets won't save [closed]

Hello Craft Community, I have a site which has just over 300 entries but most entries have several asset fields, entry fields, or complex matrices. My problem is that when on an existing entry, I ...
5
votes
1answer
4k views

Link to an entry via Entries field type

I am attempting to create a "dynamic" button. By that I mean I want the user to be able to update the text and the target (href) of where the button links to when clicked. So I created fields: ...
1
vote
1answer
289 views

Limit by entry type in Matrix field

After a finally returning to an extensive recode of my first commercial Craft based site, I have successfully implemented several new (to me) features from the latest builds. One thing I am making ...
1
vote
1answer
919 views

Display images from Structure

I have a Structure section (galeriesPhotos) with two Entry Types: Albums - the categories on the index.html page Photos - the the actual gallery on the entry.html I'm trying to display the images ...
0
votes
0answers
65 views

Can no longer get the ElementType a field is attached to

I wrote a simple fieldtype that checks that the field value is unique for a specific entry type: https://github.com/fuel-digital/Craft-Unique-Text-FieldType This worked fine initially but after the ...
4
votes
2answers
665 views

Can I use translated properties for URL formats

Here's my scenario. I have a structure section: "events". Within that I have three entry types: "events", "exhibitions", "specials". I would like the events to follow the following URL structure: {...
4
votes
3answers
246 views

Is it possible to limit how many times and entry type can be used?

I've structured my site so that most of the pages are in a single structure section (easier to manage that way and it means all my pages can be outputted and organised in the navigation's {% nav %} ...
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
230 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
72 views

Event when a sections' entry type changes layout?

Is there a way or an event available to detect changes on the fieldlayout of an entrytype? We've wrote a piece of middleware that needs to be informed of such changes. Thanks in advance, Patrick
4
votes
3answers
1k views

How do I save a front-end form as a specific Entry Type?

I have a few different forms on my site for different kinds of enquiries, each represented by an Entry Type with different fields in a single Enquiries channel. How can I get the entries/saveEntry ...
1
vote
1answer
208 views

Disable Entry Type

I dont want to allow people to post from a legacy entry type but I still want the content that was created with that entry type. Is that possible?
2
votes
2answers
657 views

How to set a different URL format for each entry type of a section?

Is there any way to set a different url format for each entry type of a section? I have an entry type "image" on which I will be using the Randomm plugin by Fred Carlsen to generate random strings ...
8
votes
2answers
3k views

How do I display entries from multiple entry types?

I have a 'teacher' channel section on my site. That channel has three entry types, 'teacher', 'demoTeacher' and 'guestTeacher' - how do I display entries from teacher and demoTeach combined? At the ...
2
votes
1answer
210 views

How to make a separate RSS feed for each entry type of a section?

I would like to make a separate RSS feed for each entry type of a section, for example: http://mysite.com/posts/feed.rss http://mysite.com/videos/feed.rss ...
2
votes
2answers
244 views

Pages for each entry from an entry type?

Let's say I have an entry type named "Designers", and I have: A title field "Full Name" A categories field "Specialty" Another categories field "Location" Now I want each designer (that is, each ...
2
votes
1answer
502 views

How can an entry type have its own search and categories?

I have an entry type whose content will be separated from the main content. So I was wondering how can we give an entry type its own search and categories? Possible?
5
votes
2answers
6k views

How can you get an entry type's name from its handle in a template?

Each of my entry types have their own template. The url is something like: /foo/{entryTypeHandle} And the route is: 'foo/(?P<routesEntryTypeHandle>[-\w]+)' => 'bar.html' In the template ...
1
vote
3answers
206 views

How do you display entries in a specific (custom) order?

I want to display entries in a specific custom order in Craft. For example entry Id 1, then Id 5, then Id 3. How can I do that?
7
votes
1answer
895 views

Using an IF-statement to define the Entry URL Format

Within a channel I have two kinds of possible article types, which I separate with the entry type feature. For the entry URL format I want to include the type, but only for one of the two. I've tried ...
5
votes
1answer
633 views

Set Default Entry Types for elements in a Structure Section

I have a Structure Section controlling my Nav and page contents So I have Home About Us History List item List item Services Service 1 Service 2 Service 3 In the Control Panel when I add ...
2
votes
1answer
674 views

How to list the latest 5 entries per entry type?

Let's say I have 4 entry types (Article, Video, Photo & Quote). What's the best way to list the latest 5 entries by each entry type?
2
votes
1answer
2k views

Impossible to invoke a method (“getUrl”) on a string variable (“60”)

I'm a beginner and don't understand this error, and how to correct it: Template error Impossible to invoke a method ("getUrl") on a string variable ("60") I'm trying to display only the first entry ...
2
votes
1answer
2k views

Problems creating an entry using app()->entries->saveEntry()

I get the Craft loaded with another application on PHP and I try to create a Entry, no problems deleting and getting the entries but when I try to create a new one Craft doesn't show me anything, and ...
4
votes
1answer
477 views

New route for entry types

I would like to create a route for the entry types of a specific section, pointing to a single template. Is it possible to do this automatically? So far I haven't had luck, I'm thinking something ...
9
votes
3answers
3k views

Entry Types Custom Slug

The website I'm working on has different sections and each section different types of entries. I would like the types of entries to be shown in the URL. I have followed this tutorial to do so. In a ...
4
votes
2answers
5k views

How do I create a link to an entry using entry's id?

This is a beginner question: How do I create a link to an entry using entry's id? I tried several combinations, such as {{ entry.getUrl(my_id) }}, {{ entry.url.id(my_id) }}, etc. but failed to found ...
3
votes
2answers
4k views

How do I loop through entries for a specific entry type?

I would like to loop through entries in a channel but only the ones for a specific entry type. Is this Possible? I'm using the free version of craft on a test site, I have used the channel for my ...
3
votes
1answer
74 views

A way to save feeds as an entry

Was wondering if anyone had looked a a way of saving RSS feed items as an entry into craft. I imagine this would have to be done through a plugin and a custom field type? Or is there a better way to ...
4
votes
1answer
1k views

Sections, Categories, and EntryTypes. Which, when?

bit of a 'best practice' question, as I'm very sure there are many ways to do this sort of thing, but... When/how do you decide whether to use a section, category, or entry type to organise your ...
4
votes
1answer
852 views

Is it possible to Filter entry types via the URL?

I'm wondering if it's possible to dynamically filter a section list by entry type based on a url segment? I'm hoping to avoid assigning a category to every entry.
6
votes
2answers
190 views

Is it possible to show more entries of the same entry type as the current entry?

I'm creating a tumblr-esque blog with a bunch of different entry types. One of the entry types will be named "Image". When I'm on the entry page for an "Image" entry, I'd like to be able to show 10 ...
9
votes
1answer
3k views

How do I add a subcategory to the URL slug for a channel entry?

I'm trying to mimic the URL structure exactly how I have it in my old CMS. If I select an entry to have both a category and subcategory I would like to have the subcategory in the URL along with the ...
5
votes
1answer
183 views

How do I add Entry Types to URL?

In the Sections settings ("Entry URL Format") I would like to add an entry property tag for Entry Type. discography/{slug}

1
2