LiamC

shouldnt this have an icon here? I am using the latest SS

Files: Requires logging in with Slack to view/download
Pasted image at 2019-03-19, 4:42 PM
LiamC

@andante Whats the best way to do this? I am removing duplicates from the array and trying to use your array data advice

  1. $result = array_map("unserialize", array_unique(array_map("serialize", $FiltersArray)));
  2. return $this->owner->customise(new ArrayData(['Seven' => $result]))>renderWith('Includes\Filters');

LiamC

Afternoon all, I have a function called Brands() which returns this array

  1. (
  2. [0] => Array
  3. (
  4. [Title] => Ohaus
  5. [ID] => 37
  6. )
  7.  
  8. [3] => Array
  9. (
  10. [Title] => Salter Brecknell
  11. [ID] => 38
  12. )
  13.  
  14. )
When I loop $Brands" I cant seem to get the data to show. Can anyone help? 😕

LiamC

is there a way to stop the multiples and they only appear once

LiamC

if I do

  1. <% loop $BlockPage.CategoryProducts %>
and then inside that loop do
  1. <% loop Filter %>
I get results but it loops an item 3 times if it appears for example 10kg will show 3 times. I have tried looping like this instead
  1. <% loop $BlockPage.CategoryProducts.Filter %>
but then I get nothing

 

[2019-03-22 08:13:10] manifestcache-log.WARNING: Failed to save values {"keys":["__CACHE__"],"exception":null} []