Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active pagination status Index not shown on 'reefined' page #18

Open
amadeus77 opened this issue Aug 31, 2023 · 4 comments
Open

Active pagination status Index not shown on 'reefined' page #18

amadeus77 opened this issue Aug 31, 2023 · 4 comments

Comments

@amadeus77
Copy link

Setup:
EE 7.3.11.
Freebie 3.2.3
Reefine 3.1.1

Using freebie to let ee ignore the "reefine segment" in the URL.
I have to use fix_pagination = "yes"
Without it the "reefine segment" is stripped out in the target url when clicking on a pagination page link on a page filtered by reefine.
When using fix_pagination = "yes"
the URL keeps the "reefine segment" and the pagination segment ('P10', P20', ...) is shown at the end of the url as intended. Also the result entries are the rigt ones. But the right active page index is not in the pagination links. The active status stays always "1", and the pagination links are not clickable as they should be. (e.g. not possible to click on page "1", when showing the second page of results, because page "1" is always active.)

Until the latest version of ee6 this worked.

@Patrick64
Copy link
Owner

Hi.

Are you using a querystring? I've been working on something similar at the moment actually. Here's the code I used for pagination that adds the query string on the end if that helps:

{paginate}	
<li class="has-short-buttons pagination">
<div class="pagination-inner">
	<p>Page {current_page} of {total_pages} pages</p>
	<p>
		{pagination_links}
			{first_page}<a href="{pagination_url}?{current_query_string}">&lsaquo; First</a>{/first_page}
			{previous_page}<a href="{pagination_url}?{current_query_string}">&lsaquo; Prev</a>{/previous_page}
			{page}
			{if current_page}
				<strong>{pagination_page_number}</strong>
			{if:else}
				<a href="{pagination_url}?{current_query_string}">{pagination_page_number}</a>
			{/if}
			{/page}
			{next_page}<a href="{pagination_url}?{current_query_string}">Next &rsaquo;</a>{/next_page}
			{last_page}<a href="{pagination_url}?{current_query_string}">Last &rsaquo;</a>{/last_page}
		{/pagination_links}
	</p>
</div>

</li>
{/paginate}

@amadeus77
Copy link
Author

I only use the "standard" pagination links

{paginate}
<div class="w-100 pt-5 px-2 px-sm-0 d-flex justify-content-center pagination">
    {pagination_links}
</div>
{/paginate}

I did sent you a staging site link through DM in slack. Can't post this here.

@amadeus77 amadeus77 reopened this Aug 31, 2023
@Patrick64
Copy link
Owner

Looks like I can't access that link. Can you post the code in your reefine block?

@amadeus77
Copy link
Author

Responded in Slack via DM. Sorry don't want to post the whole code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants