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

Passing SiteTree to ASM Select Field


Go to End


1320 Views

Avatar
DanStephenson

Community Member, 116 Posts

6 June 2012 at 3:57am

Edited: 08/06/2012 2:09am

Hello,

I am working on a website where I will have several types of art projects (Paintings, Sculptures, etc), and a contact form I am building for each section that allows a user to inquire about 1 or more items in that category.

I'm going to use an ASM Select Field to allow the user to select one or more items from each category. My question, however is how I can pass a subsection of the SiteTree (page names from the Paintings category for instance) to the ASM Select Field - so I can grab all the child pages from a section.

Can anyone help with this?

Eventually what I am going to be doing is emailing the artist and including a list of the pieces that the web visitor was interested in.