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

[Premium] Headless json_encode does not respect pagination #273

Open
develth opened this issue Jan 21, 2025 · 2 comments
Open

[Premium] Headless json_encode does not respect pagination #273

develth opened this issue Jan 21, 2025 · 2 comments
Labels
question Further information is requested

Comments

@develth
Copy link

develth commented Jan 21, 2025

Hi,

this part:

https://github.com/tpwd/ke_search/blob/db762836a3fcac00ade7b6da469ec62991b48a6a/Classes/Plugins/ResultlistPlugin.php#L121C24-L121C35

Will not serialize the Pagination class / part.

Thanks!

@christianbltr
Copy link
Member

Hey,

yes, there's no pagination included in the headless search result output. But I'm not sure what you expect here. The pagination generated by TYPO3 would not help you because the pagination links won't work in your frontend.

So from my point of view you would need to build your own pagination. You are getting the number of search results in the headless result and you can request a certain page of the search results using the ´page´ parameter. The number of search results per page can be set in the plugin in the backend.

Image

Does this help you? Or what would like to see in the headless output?

@christianbltr christianbltr added the question Further information is requested label Jan 24, 2025
@develth
Copy link
Author

develth commented Jan 27, 2025

Hey,

just opened the issue, because of the case is in the code & that it is not working.

I already work with the paging in headless, but the pagination result could also have more or instant information, that was already calculated in backend without reprocess it in the frontend.

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

No branches or pull requests

2 participants