Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Displaying an array

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1164 Views
  • r0ar
    Avatar
    Community Member
    13 Posts

    Displaying an array Link to this post

    Ok, so have a variable length array and I want to display it.
    How exactly do I do that?

    Also,
    is there some way that I can get a function to output html, that will be displayed?

    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5503 Posts

    Re: Displaying an array Link to this post

    I think you can use something called ArrayData which will convert your array into a viewable data object which you can iterate through / use in your template - http://doc.silverstripe.com/doku.php?id=arraydata

    1164 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.