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.

General Questions /

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

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

Passing SiteTree to ASM Select Field


Reply


471 Views

Avatar
DanStephenson

Community Member, 115 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.