<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Looping and storing into arrays</title>
    <link>https://forums.adobe.com/community/business_catalyst/developer_forum?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 06 Nov 2014 06:00:38 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-06T06:00:38Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Looping and storing into arrays</title>
      <link>https://forums.adobe.com/message/6904302?tstart=0#6904302</link>
      <description>&lt;!-- [DocumentBodyStart:de5b22b7-3303-4de3-88f9-42cb8a9fb0f4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Well Rob, you have {module_data... So if you want to go even further You can turn to that and you can defiantly do the where. I think bringing that to all modules would be some serious overkill work, you would be basically replicating that functionality.&lt;/p&gt;&lt;p&gt;That is how I am classing _data - This is your hardcore module to use when you want to do some serious s*** but as I have said in other threads, We should not be turning to that all the time when we just need something like categories in list view. That would also be over kill in those situations.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But then when you do use _data it would be good to get some results, map it to an array and then use that for something else.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:de5b22b7-3303-4de3-88f9-42cb8a9fb0f4] --&gt;&lt;img src='/beacon?t=1415881910452' /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 06:00:38 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6904302?tstart=0#6904302</guid>
      <dc:date>2014-11-06T06:00:38Z</dc:date>
      <clearspace:dateToText>1 week 7 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Looping and storing into arrays</title>
      <link>https://forums.adobe.com/message/6904300?tstart=0#6904300</link>
      <description>&lt;!-- [DocumentBodyStart:96711efb-6c43-4d46-9e8e-6a73e35b593f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Those would be great.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I'd really like to see, is basic filters on module_ tags, so we can reduce the set of returned elements &lt;strong&gt;before&lt;/strong&gt; the infernal pagination limit is hit. (Wasn't this already mentioned somewhere?)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;E.g., in your example, only the first &lt;em&gt;x&lt;/em&gt; hundred webapp items can be looped over to test for classification/name/whatever. We should instead be able to say something like {module_webapp collection="myitems" where="item.classificationName EQ foobar"}, so we'll get matching items even though they wouldn't have appeared in the first page of unfiltered results.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:96711efb-6c43-4d46-9e8e-6a73e35b593f] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 05:37:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6904300?tstart=0#6904300</guid>
      <dc:date>2014-11-06T05:37:39Z</dc:date>
      <clearspace:dateToText>1 week 7 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Looping and storing into arrays</title>
      <link>https://forums.adobe.com/message/6904298?tstart=0#6904298</link>
      <description>&lt;!-- [DocumentBodyStart:38838392-0fb4-46ec-bd93-c35e7d9b94a8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Anyone managed this yet, or BC team - you got any thoughts....?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;There could be cases and situations like this one and in this case either a solution or just having a loop array filter would be nice also...&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;You have a web app with classifications. You want to people in a company. You want to show board members (Classification) in one section and the rest of the team in another.&lt;/p&gt;&lt;p&gt;The Rest of the team will show the board members because you do not have classifications in list view.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Solution 1:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;BC to provide classifications in list view liquid/collection&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Solution 2: (And something we probably may need too)&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;It would be great to loop through a collection and store into an array&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;{% assign myarray = [] -%}&lt;/p&gt;&lt;p&gt;{module_webapp collection="myitems"}&lt;/p&gt;&lt;p&gt;{% for item in myitems-%}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {% myarray | map: item.name-%}&lt;/p&gt;&lt;p&gt;{% endfor -%}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;{{myarray}}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It would be handy to be able to store items in an array. You can already map an array, have a manually made array you can loop through, have a string you map into an array via a cookie etc.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:38838392-0fb4-46ec-bd93-c35e7d9b94a8] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 05:27:12 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6904298?tstart=0#6904298</guid>
      <dc:date>2014-11-06T05:27:12Z</dc:date>
      <clearspace:dateToText>1 week 7 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

