Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [previous-next]

The tag has no usage guidance.

1
vote
1answer
18 views

Pagination: Next/Previous related to author

I'm having trouble limiting next/previous links in one channel to articles by the author. next/previous links are working correctly on the regular blog but when included on the DJ blog I get unknown ...
0
votes
1answer
70 views

Impossible to access an attribute (“url”) on a null variable in search results

I have a search results page set up like this: {% set searchResults = craft.entries(queryParams) %} {% paginate searchResults as pageInfo, pageEntries %} {% if pageEntries|length %} {% for yacht ...
2
votes
1answer
31 views

Previous/Next button to next item in Matrix

I've made a projects structure with inside a couple of projects. On the homepage people can fill in a matrix with either a project or a textblock. I'm capable of looping through the detail pages in ...
1
vote
1answer
193 views

Next block inside of a loop

I’m struggling with getting the next block inside of a loop of a Matrix-Field. I’ve tried this: {% set nextBlock = entry.articleContent.offset(1).limit(1) %} {% if nextBlock.type == "textBox" %} {{ ...
1
vote
1answer
390 views

Entries order postDate not working

I'm trying to get prev/next entry using positionedAfter and positionedBefore filters but getting weird order on results because order('postDate desc') seems to be ignored. {% set prevSibling = craft....
2
votes
1answer
60 views

Next and Previous Entries that match condition?

Not sure if what I am looking is possible, but basically I have a section ('portfolio'). At the bottom of each entry I have links to the previous and next entry. Simple. My trouble is that the ...
0
votes
1answer
114 views

Display the next and previous category

The examples I have seen to link to previous and next entry all seem to be for sections. I want to get the previous and next category. My category handler is called 'media'. So I might have entries ...
1
vote
1answer
131 views

Sorting across blocks (to get prev/next links)

issue is an entry that has a matrix field named contents, whose blocks have an entries field named works, and the related works channel has an entries field named authorPeople. Issue 1's contents ...
3
votes
1answer
331 views

Return previous or next enabled sibling of same parent

I want to link to enabled sibling entries within a structure and am struggling to get it working. This is what my structure looks like: Because I only want to fetch entries that are enabled, I ...
1
vote
1answer
70 views

Prev / Next Link Problem

I've this macro: {{ dh_macros.dh_postNav(entry, 'blog', 'postDate', 'prev article', 'next article') }} I call it on my blog/_single template and it works for 90% of the posts. But the newest 6 posts ...
0
votes
2answers
163 views

How do you create pagination links related to entries within a Matrix Field in a single entry?

I have combed through similar questions, although my pagination links are not performing properly. I would like to add pagination links to entries within a channel. And I would like for the ...
1
vote
1answer
232 views

How to fetch Category of current Entry and build “Next / Prev” urls

My original question here helped me figure out how to build my URL structure but now the site has introduced two categories: design and photo. I want the "Prev" and "Next" buttons to navigate back ...
1
vote
1answer
139 views

How to link to prev/next entry depending on related data?

I am quite new to Craft and I am not sure how to get a prev/next link only for entries with related data in a specific field. My situation: I have a Structure (let's call it sourceEntry) with an ...
3
votes
2answers
1k 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 ...
4
votes
1answer
660 views

What's the best way to paginate through entries from an entries field type?

I have an entries field type associated with a structure section page. This displays the entries on this page in a particular order. When you click an entry link ti will take you to a detailed page ...
5
votes
1answer
337 views

How can I show next/previous paging that's limited by specific criteria?

I'm adding prev/next links to a detail page and can't get craft.entries to return the correct entries. Specifically, I need craft.entries to return entries in the "leadership" section where the ...