Correct way to get ListField values

11 views
Skip to first unread message

Paul West

unread,
Jan 13, 2017, 12:02:05 PM1/13/17
to QuickApps CMS

I want to build a select input and populate the options from a List Field for a front facing filter/search tool.

How is the best way of getting the List options? 

I know the eav attribute name so should I find via that?


Thanks,

Paul

Chris

unread,
Jan 13, 2017, 2:04:06 PM1/13/17
to QuickApps CMS
Hi,

I'll see why there a missing page on the book, but for the moment you can read this section of the book here: 

However, rather than EAV you should use Field API, which is built ON TOP of the EAV API: http://book.quickappscms.org/developers/field-api.html

Also, if you need you place such input at frontend I would highly recommend you to use shortcodes. This would allow you to encapsulate all the "magic" in one place, separate PHP and HTM and create reusable elements: http://book.quickappscms.org/developers/shortcode-api.html

Regards!
Reply all
Reply to author
Forward
0 new messages