Questions tagged [sections]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13
votes
1answer
10k 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 ...
2
votes
1answer
378 views

How to use paginate with a date filter?

Assuming that I’ve a total number of 10 entries in my section('exhibitions') where 8 of them have their entry.endingDate < now, I limit the display to 8 entries but the paginate shows a next button ...
3
votes
1answer
483 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 ...
11
votes
1answer
2k views

How to create a CMS editable channel section index page?

If I have a section called 'blog', and its handle is 'blog', and it's a Channel, all of the entries appear under http://mysite.com/blog/{slug} - which is great; but how would I create a page at mysite....
8
votes
2answers
338 views

Is there any way to set a default status for Entries, either globally or per Section?

The subject more or less covers it — is there any way to set the default status for Entries, either on a Section by Section basis, or globally? I have a client that doesn't want to accidentally set ...
3
votes
2answers
2k views

How do you page through child entries in a structure?

I am trying to figure out how to page through only the children of the top level section entry being displayed, I have looked at this question but as I say I am after only the children not the ...
3
votes
1answer
936 views

Filter channel entries by slug

Is there any way to output the content of a channel entry by their slug? For example, say I have an asset field called "image" in each channel entry, I want to output the content of that field only ...
-1
votes
3answers
188 views

What's are some best practices for building a site structure with multiple locations?

First time building a site with Craft, but a long time admirer. Just wanted to know the best way to approach an educational site that has many locations, and then have a news section, etc. in each ...
15
votes
3answers
22k views

How to return a specific entry?

Hopefully this is a simple question but I couldn't find a clear answer anywhere - I just want to be able to pull in data from a specific entry, where I know the identifier. In this particular case, ...
4
votes
1answer
970 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 ...
2
votes
1answer
462 views

How to list the latest 3 entries per category per section?

I'm trying to create a condensed overview of my website content on my homepage. I'd like that page to loop through all sections, in each section looping through the categories that apply to the ...
7
votes
3answers
576 views

Can I extend entries listing views (currently or in the future)?

Is there a way to show custom columns in the backend with entries listing views? Or can it be a feature in the future? For example: show category as a column in the news overview in the backend
5
votes
2answers
1k views

Updating all entries URIs after changing entry URL format

After publishing some entries, I've changed the section setting "Entry URL Format" from news/{slug} to news/{id} but I had to re-save every entry to reflect the change. Is there a better and fast way ...
17
votes
1answer
1k views

How to handle top-level/index pages in structure sections?

It seems that currently if you want to avoid the main "about" page at the top of an "about" structure having a slug of /about/about/ then the approach people seem to take is to create an About page as ...

1 2 3
4