Thread tagged as: Field-Types

Dataselect question

First time using a dataselect.

I've created a multiple region called 'locations' and the data select is showing up with that region's values in admin. Perfect.

What I'd like to do now is create a select box on the web page itself with the data select's values - it's name and slug. The select is going to be used to refine a list of jobs based on the values from 'location'.

Any ideas how I'd go about doing this?

Thanks, John.

John Robinson

John Robinson 7 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Create a template that outputs the <option> tags for the select box and use perch_content_custom() to display the Locations region using that template.

Great, thanks Drew.