Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Displaying an array


Go to End


2 Posts   1516 Views

Avatar
r0ar

Community Member, 13 Posts

2 August 2008 at 11:29pm

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!

Avatar
Willr

Forum Moderator, 5523 Posts

3 August 2008 at 4:19pm

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