Sub-categories Tutorial
134 posts by 17 authors in: Forums > CMS Builder
Last Post: August 7, 2012 (RSS)
By Jason - August 7, 2012
Hi,
If you have a field in articles called "category", then your problem is the 'allowSearch' option in your getRecords call.
Try this:
Hope this helps
If you have a field in articles called "category", then your problem is the 'allowSearch' option in your getRecords call.
Try this:
list($articlesRecords, $articlesMetaData) = getRecords(array(
'tableName' => 'articles',
'loadUploads' => true,
'allowSearch' => false,
));
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Sub-categories Tutorial
By cmsb - August 7, 2012
Hi Jason,
That seems to have done the trick. Forgive me for this lame question: when I click on the Articles - List Page Viewer, I get a popup message that says "Set detail page URL for this section in Admin > section editors > viewer URLs. Does this mean I simply create a URL that is called articleDetail.php? and then go to code generator and make a page called articleDetail.php?
forgive me, I know this is a lame question and I should know this answer.
That seems to have done the trick. Forgive me for this lame question: when I click on the Articles - List Page Viewer, I get a popup message that says "Set detail page URL for this section in Admin > section editors > viewer URLs. Does this mean I simply create a URL that is called articleDetail.php? and then go to code generator and make a page called articleDetail.php?
forgive me, I know this is a lame question and I should know this answer.
By Jason - August 7, 2012
Hi,
No problem. Yup, you basically have it right. You create your detail page (called whatever you like), and then put the name of that file in your viewer URLs section of your articles section under detail page.
Hope this helps
No problem. Yup, you basically have it right. You create your detail page (called whatever you like), and then put the name of that file in your viewer URLs section of your articles section under detail page.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Sub-categories Tutorial
By cmsb - August 7, 2012
Thank you. I think I owe you a batch of homemade cookies! I will send them anywhere! Just let me know your favorite![:)]