Include multi record in a single record
2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 12, 2010 (RSS)
I have searched the forum without any luck. I have several Single record editors (one for each department, because each department wants to edit their own pages) I also have a multi record FAQ section which lists all FAQ's by department. Is there a way to pull a departments FAQ into their Single Record?
Thanks,
James
Thanks,
James
Re: [hvbuilder] Include multi record in a single record
By Chris - November 12, 2010
Hi James,
Assuming you have a field in your FAQ section called "department", you can load associated FAQ records like this:
Does that help? Please let me know if you have any questions.
Assuming you have a field in your FAQ section called "department", you can load associated FAQ records like this:
list($faqRecords, $faqMetaData) = getRecords(array(
'tableName' => 'faq',
'where' => " department = 'example' ",
));
Does that help? Please let me know if you have any questions.
All the best,
Chris
Chris