Questions tagged [channels]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
1 answer
3k views

Changed section from Channel to Structure, but can't re-order entries

As the title says, I changed a section from Channel to Structure, but when clicking on that section in the dashboard, the layout still looks like a Channel, and I'm not able to reorder/drag the ...
6 votes
1 answer
3k views

Showing categories in Channel Entry URLs

I have a site which has two blog-like sections, which I'll call Blog and News. Each has a few categories. The categories are different in each section. An article always has (only) 1 category assigned ...
6 votes
1 answer
4k views

What's the right way to create a simple blog in Craft?

Should I create a Single for the blog home page content (/blog) and then a Channel to hold the entries (/blog/{slug})? The blog index page also needs to have non blog entries on, i.e. intro text ...
  • 1,106
5 votes
2 answers
1k views

Building a website containing restaurant menus from multiple vendors -- need some advice on Section hierarchy of data

Figure I'd query with the geniuses over on StackExchange as I think I've hit a roadblock in my project. I'm building a website containing menus from multiple restaurants with the vision that it could ...
  • 83
4 votes
2 answers
3k views

Show entry in channel based on URL segment

Short Question: I'm coming from ExpressionEngine where 'dynamic' would do the trick. However I can't seem to figure out how to do this in Craft. I want to be able to use one Channel to show content ...
  • 143
4 votes
1 answer
2k views

Best practice for channels and structures

I am wondering if there is a best practice around using channels and structures. When you have a single section you can link to that section by selecting the entry for it. For channels and structures ...
  • 231
4 votes
1 answer
501 views

Easy way to copy sections to a new install

Is there an way way to copy sections I have in an existing site to a new website I am doing with a fresh install? E.g. To Copy the News Channel Section and all the field types Also copy the structure ...
  • 1,769
3 votes
1 answer
142 views

Channel not showing all items?

We have a channel on the following page that shows 'Issues' of our magazine: http://ambitmagazine.co.uk/issues We have issues going all the way back to issue 1, but the channel page currently only ...
3 votes
1 answer
526 views

Help with understanding how to structurally build a sermon catalogue

I'm currently working on a website for a church and I thought that Craft would be perfect for the project and a great way to learn it. However, I'm having a hard time wrapping my head around how to ...
3 votes
1 answer
856 views

What's best practice for creating an index page for Channels?

If I have a section called "news" with section type "channel" with entries having their own URLs, what is best practice for creating an index for when people site.com/news? Do I just create an index ...
  • 83
3 votes
1 answer
122 views

How can I change status of all the entries in a channel to closed?

I've looked through all the tables, and I can not find a column for status. I'd like to close all entries in channelId X. Is there a way to bulk edit entries via DB?
  • 1,909
3 votes
1 answer
534 views

How to handle custom text on a channel index page?

I'm setting up a site with several channels, and the design requires an introductory paragraph at the top of each channel's index page (ie. before the list of entries) - essentially a post that ...
  • 1,215
3 votes
1 answer
251 views

Element API: Entry field inside a Channel entry being passed into JSON file

Hopefully my titles makes some sense but I will try to elaborate. I have a Channel entry called Movies that I am using the Element API to turn into JSON. There is a field inside that called Movie ...
3 votes
1 answer
624 views

Channels within Structures?

I have a site that requires the client to reorder their entries in each 'category' manually. Obviously structures are perfect for this but where I'm running into trouble is that the entries need to ...
  • 51
2 votes
2 answers
2k views

Exclude category from channel entries (with pagination)

I'm trying to paginate a channel of entries but I also need to exclude any entries that relate to a specific category. This is what I have so far... {% set insightCategory = craft.categories({"slug":...
  • 228
2 votes
1 answer
614 views

How to output first segment title/channel name of entry?

For example, I have channel entry https://site.dev/news/2017/test and I would like to output "News" section name on entry page.
  • 373
2 votes
2 answers
870 views

Linking to channel page

I'm just getting started with Craft. My problem is that I'd like the user to be able to change the location of call to action buttons on the site. Instead of allowing them to enter any URL, it would ...
2 votes
2 answers
468 views

Case sensitive Channel urls problem

So I have a few different channels for different types of content. One called pages which is just for regular web pages. All of those entries work uppercase or lowercase so example.com/About and ...
  • 801
2 votes
2 answers
990 views

How to display a list of next entries

Is there a technique for displaying a list of “Next Entries”, which come from the current Channel. The solution I am using at the moment isn’t cutting it… I’m using an Entry Offset of 1 to display ...
2 votes
2 answers
166 views

Restricting relationship field by author

First site using Craft and impressed thus far. I'm going to be allowing CP access for all users, and these users will have access to multiple channels. I want them to be able to relate their entries ...
2 votes
1 answer
36 views

How can i disable channel list url?

I have a channel type entry where I'm inserting services. I have created a channel and add route services/{slug} and added template services\_entry.twig. I want to keep url for single service as ...
2 votes
1 answer
240 views

List entries without specific tag

I am trying to output a list of entries from a channel section that DO NOT have a certain tag. I am able to output the entries that have the tag assigned by setting the tag as a variable and using ...
  • 317
2 votes
1 answer
1k views

How to move entries from one channel to another

I have a channel that has three different entry types. The client has decided that two of those post types should be in a separate channel. This is an existing site with a few dozen entries currently ...
  • 1,215
2 votes
2 answers
2k views

Channel index page linked in a structure

I come from expression engine and what I want to do is the following: I have a channel filled with entries. All I want to do is to list all these entries on a page. However, I don't want to link ...
  • 1,456
2 votes
2 answers
41 views

Any ID I could reference in sections

I created a section for appointment record (channel type). Each appointment record has different fields, i.e. customer name, phone#, address, etc... I would like to set a unique appointment_record_id (...
2 votes
1 answer
443 views

Multiple sections, limiting the structure by depth

I'm trying to pull entries from multiple sections for a list on a page, which works fine: {% if section is not defined %} {% set section = 'events,checklists,opinionPieces,whitepapers' %} {% ...
2 votes
1 answer
122 views

Is it possible to use a lightswitch (or something similar) for different post types?

My question is closely related to this question: How do I display entries from multiple entry types? I would like to have two blog post types: Regular blog posts (Title, Body, etc) External links ...
  • 217
2 votes
1 answer
98 views

Find all empty fields in admin

I'm working with a fairly large data set in one of my channels and I was hoping there was a way maybe in admin to show me all the live entries where certain fields are empty. I want to be able to ...
2 votes
1 answer
303 views

How to get data from Matrix field type?

I have a channel which is basically a list of articles. Each article is associated with one or more companies. When I click on companies I want to show all the articles related to the company. I got ...
  • 109
2 votes
1 answer
1k views

Set navigation menu item to active for child pages

Currently we're highlighting the active page in our navigation by having a structure of menu items with a "menuLink" field and comparing that to the current entry uri. Something like this: {% nav ...
2 votes
3 answers
250 views

Adding description and other information to channels

This might be a little difficult to explain thoroughly and correctly, bear with me. :) The Problem The news website I'm working on has different categories based on topics, location, and "genres" (...
  • 1,369
1 vote
1 answer
571 views

New entries not appearing on template page

My client has been adding some new entries in a channel called Products. These are using different templates that are selected when creating the entry. The entries on a few different template types ...
1 vote
1 answer
108 views

Can two sites use the same channel, but have unique entries?

I have a multi-site application where my primary site is my company's main website, and the additional sites are small "microsites" for some of our projects. I want to share channels between my ...
1 vote
2 answers
407 views

Querying channel entries hits memory limit

We have a channel that has about 700 entries but is paginated with a limit of 30 entries. Our client is looking to add a button so users can print out all entries. One of our proposed solutions was to ...
1 vote
2 answers
119 views

Dedicated channel for news? or a channel for blog with a news category?

A clean installation of Craft includes a 'News' channel which has confused me slightly. Would it not be better to have a 'Blog' channel with a 'News' category? What is the advantage to having a ...
  • 241
1 vote
1 answer
64 views

Create a channel programmatically

I am diving into Craft plugin development and there is one thing that I want to achieve, but I didn't find any documentation. I managed to save specific new entries into a channel using saveElement(), ...
1 vote
1 answer
175 views

GraphQL: get prev / next entry from current entry (channel)

Is there a way to get the prev and next entry from the current entry, when this entry is inside a channel and not a structure? query ($id: [QueryArgument], $rel: Int) { entry: entry(id: $id) { ...
1 vote
2 answers
289 views

Using Conditionals in Title Format

I've got a new channel for Authors where there are 3 fields: firstName middleName lastName and I'm using these fields to generate the Title of the channel entry. However I would like to add a ...
  • 1,907
1 vote
1 answer
348 views

Channel URL Format leads to 404s for individual entries

I've broken my news channel but I don't know how I did it, or consequently to fix it. If one clicks on 'I just installed Craft' or 'Continue reading', it will take you to the URL I specified in the ...
1 vote
1 answer
29 views

Set a default Channel page if no slug is provided in the URL

I was wondering if there was a way to set a channels page as the default page to load if there is no slug address i.e. I want the below web address to default to a skills page myWebsite.com/skills ...
  • 299
1 vote
1 answer
28 views

Dates for entries are in different language

When the user wants to edit the Post Date or Expiry Date of an entry (channel/structure), the calendar is in Welsh language. I have no clue how this happened. How can I change this? Thank you
1 vote
1 answer
45 views

Channgel entry to disabled

Is it possible that when my user adds a new entry in a channel on the English site, it gets copied to the channel of my Belgian site, but this entry is set automatically to disabled? So my English ...
1 vote
1 answer
54 views

How to show nothing when you leave an input field empty in the entries instead of showing an error?

I made a content page (Channel) where the client can add a bunch of content. There will be multiple pages (1 page for every case) with the same layout. Sometimes they don't want to fill in every input ...
1 vote
1 answer
63 views

Relationship between channels/entries

I need some help. Really struggle understanding how to build relationships between channels/entries. Context/Want: I have two separate channels: 1. "Plant catalogue" 2. "Plant care" I want to re-use ...
1 vote
1 answer
124 views

Same content on different slugs

I hope someone can help me to understand this. I have a Channel called eg. "My channel". In that channel i have two entries: Post 1 and Post 2. Those two entries have different titles and content. ...
  • 79
1 vote
1 answer
296 views

Setting a default entry for the entry field

I have an entry field that is a selector tool for the page call to action at the bottom. I have a channel of four or five entries and I'd like one of them to be the default selection so it's one less ...
  • 1,032
1 vote
1 answer
50 views

How should I organize/structure my channel sections?

To me, I have a large dataset of 2,000 - 2,400 entries. It's a static dataset. I only need to update a few fields annually. I plan to use channels. But, how should I organize the channels? ...
  • 891
1 vote
1 answer
406 views

Channel Section with individual entry template and index templates?

I am looking for suggestion on how to setup a resource section on a site I'm building. Here is the structure. Resources - Index Entry type of resources Webinars -Webinar Entry (template for a ...
1 vote
1 answer
250 views

How to use the same category group as a filter on multiple channel sections?

I have two channel sections, each with only their own entry types. I've added the same category group field to both. I'd like to filter each channel's list of entries by the same category group. So ...
  • 387
1 vote
2 answers
210 views

Organizing repeating content on a single page

I have a page with a slider on it, which includes three rotating slides. In Craft, I am currently setting up each slide as an entry under a "Home Page Content" channel, and then creating an entry ...