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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

MultiValueField in template


Go to End


2 Posts   655 Views

Avatar
Apc204

Community Member, 12 Posts

3 December 2014 at 12:09am

I just found the MultiValueField module and installed it, i've added the field to the CMS successfully and input a list of values but i'm struggling to use the values in my template. My field is called 'Videos' and i've tried looping through using:
<% loop $Videos %>
$Value
<% end_loop %>

but I only get "Array" printed to the screen. If anyone has experience using the extension that could point out my mistake that would be greatly appreciated :)

Many Thanks,
Adam.

Avatar
camfindlay

Forum Moderator, 267 Posts

22 December 2014 at 11:18am

Did you use composer to install the module? I'm just wondering if you have the correct version of the module for the particular version of SilverStripe core you are running.