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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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



Community Member, 116 Posts

6 June 2012 at 3:57am

Edited: 08/06/2012 2:09am


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.