Hello everybody,
It seems I have a problem creating a custom list in telligent, I'm trying to create a custom list with groups in the order that I want to(not ascending or descending). The difficult part is that I'm trying to construct it by index, so when I loop through it, it is already ordered the way I want it to, but unfortunately nothing seems to work, I have a sample code explaining what I tried.
#set($arr = []) ## I'm initializing the list ## trying to manually add items in the order that I wish $arr.set(1, "text") -- not working $arr.add("text") ## working $arr.add(0, "text") ## not working by with index #set($arr[0] = "text") ## not working $arr.insert(0, "text") ## not working $arr.put(0, "text") ## not working
Do you guys have any suggestions? I have also looked into the official Velocity documentation, but it doesn't seem to necessarily be on point with the Telligent widget velocity.
Any help would be appreciated, thank you!