-
☆ A M B ☆
- 1,231 Posts
I’m still stuck on this...
If someone can help me solve this particular issue and get it working I’ll make a $25 donation to the modx project as a thanks.
you can try in /core/components/gallery/processors/mgr/album/get.php
/* output */
$albumArray = $album->toArray('',true);
$genre=unserialize($albumArray['genre']);
if (is_array($genre) && count($genre)>0){
foreach ($genre as $key => $value){
$albumArray['genre['.$key.']']=$value;
}
}
return $modx->error->success('',$albumArray);
[Edit]
Or:
/* output */
$albumArray = $album->toArray('',true);
$genre=$album->get('genre');
if (is_array($genre) && count($genre)>0){
foreach ($genre as $key => $value){
$albumArray['genre['.$key.']']=$value;
}
}
return $modx->error->success('',$albumArray);
-
☆ A M B ☆
- 1,231 Posts
Thanks Bruno, with anticipation building up as I saved the file... both ideas didn’t work lol. DOH!
-
☆ A M B ☆
- 1,231 Posts
OK think I’ve got it now... $25 sent to modx 1 minute ago.