Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
35 views

Change order within grouped archive

I have an archive of exhibitions with entries grouped by year. The order of the groups should be descending, the order of the entries within the group should be ascending. For example: The order of ...
user2190590's user avatar
1 vote
1 answer
180 views

Select query question

I am trying to do the following with craft.entries but I think it may not be possible without a plugin. I have 9 categories with related entries on all of them. I would like to get the latest ...
Evangelos's user avatar
1 vote
1 answer
1k views

Sort entries in a category via entry field

I have a section for Businesses. I also have categories that these businesses can belong to. On each category page I want to list all the businesses that belong to that category. So far so good, but ...
Steven Thate's user avatar
2 votes
1 answer
384 views

Group entries by section, then order and combine sections

I'm grouping search results by section, based on Aaron Berkowitz's answer to this question. My code looks like this: {% set entries = craft.entries({search: {query: keywords} }) %} {% set ...
Frank Harrison's user avatar
1 vote
1 answer
251 views

Search entries ordered by sections

Is it possible to perform a search and have the results grouped/prioritized by sections? e.g. something like: craft.entries.section(['sec3', 'sec5', 'sec1']).search(...).limit(6) as page_info, ...
biko's user avatar
  • 680
0 votes
1 answer
515 views

Get Section Handle From Group

I have a landing page on my site where I want to list a group of sections that have entries. I also need to access the section handle of that same group of sections. I am having problems getting the ...
triplethreat23's user avatar
3 votes
1 answer
3k views

Group entries by section

How do I group entries by section? I have search results: {% set entries = allowedSearchableEntries.search(query).order('score').limit(100) %} But I want to have SECTION NAME entry 1 entry 4 entry ...
4midori's user avatar
  • 668
3 votes
2 answers
843 views

Order grouped entries

I need to group and order member profiles alphabetically but I can't get it to work. Have a look here: http://ffsd.de.w0129b45.kasserver.com/mitglieder (It's german but you should get the idea :)) In ...
portnull's user avatar
  • 490
3 votes
1 answer
196 views

Pagination / Custom Routes (Based on Entry Existing)

I've created a custom route for my entries based on week like so: 'events/(?P<year>\d{4})/(?P<week>\d{2})' => 'events/_weekindex', I know i can group entries by week like this: {% ...
Christopher Healey's user avatar
6 votes
1 answer
884 views

Paginate Grouped Entries

I am trying to paginate grouped entries as follows... {% set searchParam = craft.request.getParam('q') %} {% set groups = craft.entries({ search: searchParam })|group('section') %} {% for ...
Jake Cattrall's user avatar
4 votes
1 answer
972 views

Group by Field in Matrix Field

Is it possible to group by a field within a matrix field. I have a channel of players which holds their details. I have a structure for teams which includes a matrix field for a Player. The Player ...
mmc501's user avatar
  • 1,789
4 votes
3 answers
964 views

Need to access year/month variable when grouping entries by date

Having issues trying to access the year & month variable when grouping entries by month-year. The code is outputting the desired results (ie. December 2014), however I would like to format the url ...
Siebird's user avatar
  • 373
4 votes
1 answer
1k views

Paginate Entries by Day

This is giving me a surprisingly hard time. Has anyone tried to paginate entries by date, in this case, specifically by day; i.e.: First page loads today's posts, next page loads yesterday's, then the ...
cballenar's user avatar
  • 1,419
5 votes
2 answers
660 views

Is it possible to group entries by checkbox?

We're looking to output a list of entries and group them by their check box values. Here's what we've got so far: {% for checkbox, entries in craft.entries.section('my_entries').find() | group('...
Adam McCombs's user avatar
  • 1,695