<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>get list?size in freemarker whe pagination is active</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112689123" />
  <subtitle>get list?size in freemarker whe pagination is active</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112689123</id>
  <updated>2026-04-05T08:57:37Z</updated>
  <dc:date>2026-04-05T08:57:37Z</dc:date>
  <entry>
    <title>RE: get list?size in freemarker whe pagination is active</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112762043" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112762043</id>
    <updated>2019-03-14T17:19:01Z</updated>
    <published>2019-03-14T17:19:01Z</published>
    <summary type="html">Unfortunately, I don&amp;#39;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}.</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2019-03-14T17:19:01Z</dc:date>
  </entry>
  <entry>
    <title>get list?size in freemarker whe pagination is active</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112689122" />
    <author>
      <name>Iñigo Boyano</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112689122</id>
    <updated>2019-03-12T10:44:47Z</updated>
    <published>2019-03-12T10:44:47Z</published>
    <summary type="html">Hi, &lt;br /&gt;&lt;br /&gt;I need to get the total entries of a list in a freemarker ADT when the pagination of the asset publisher is enabled.&lt;br /&gt;&lt;br /&gt;With the instruction &amp;#34;${entries?size}&amp;#34;, i get the total entries of the current page, but i need to get all of them.&lt;br /&gt;&lt;br /&gt;Kind regards, &lt;br /&gt;&lt;br /&gt;​​​​​​​Íñigo</summary>
    <dc:creator>Iñigo Boyano</dc:creator>
    <dc:date>2019-03-12T10:44:47Z</dc:date>
  </entry>
</feed>
