Views
Replies
Total Likes
Hi,
there is as Sham suggested a common CQ way where the results from an operation is divided into result pages that each holds a certain number of results leading to an easy way of handling paginations. However if you consider to use you own component with your own special pagination you have to manage this yourself. The easiest way here would be to make use of the sling selectors(mypage.1.html) for this, and then handle these on the component level.
One could of course make use of querystrings (mypage.html?page=1) but as you probably know, that has it's limitations when it comes to caching etc.
So basically it's all up to you which one you prefer. There is a great api for handling the url where you can get the information from the request (request pah info). You can check this out here: https://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/commons/PathInfo.html.
Here you will be able to get selectors, suffixes and also extensions.
/Johan
Views
Replies
Total Likes
Hi,
there is as Sham suggested a common CQ way where the results from an operation is divided into result pages that each holds a certain number of results leading to an easy way of handling paginations. However if you consider to use you own component with your own special pagination you have to manage this yourself. The easiest way here would be to make use of the sling selectors(mypage.1.html) for this, and then handle these on the component level.
One could of course make use of querystrings (mypage.html?page=1) but as you probably know, that has it's limitations when it comes to caching etc.
So basically it's all up to you which one you prefer. There is a great api for handling the url where you can get the information from the request (request pah info). You can check this out here: https://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/commons/PathInfo.html.
Here you will be able to get selectors, suffixes and also extensions.
/Johan
Views
Replies
Total Likes
Out of the box search component has an example. Refer http://localhost:4502/content/geometrixx/en/toolbar/search.html?q=geometrixx
Views
Replies
Total Likes