Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
get list?size in freemarker whe pagination is active
Hi,
I need to get the total entries of a list in a freemarker ADT when the pagination of the asset publisher is enabled.
With the instruction "${entries?size}", i get the total entries of the current page, but i need to get all of them.
Kind regards,
Íñigo
I need to get the total entries of a list in a freemarker ADT when the pagination of the asset publisher is enabled.
With the instruction "${entries?size}", i get the total entries of the current page, but i need to get all of them.
Kind regards,
Íñigo
Unfortunately, I don't that variable is available to you. I think one option is to create a jsp fragment and override the asset publisher jsp and put the searchContainer.getTotal() into the request attributes. Then I think it should be available in the freemarker ADT from ${renderRequest}.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™