show all uploads from category where field equals x
4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 25, 2010 (RSS)
By jarvis - February 24, 2010
I've got my CMS working near enough as needs be. You can add a news article and within this you set a client from a drop down and can add multiple image uploads and pdfs etc.
On the site, there is a drop down of clients. Selecitng a client goes to a page and pulls all the images, files etc uploaded for that client. However, this doesn't seem to be the case, it seems to just show the 1 image of the last news article added with that client. Am sure the code is right. I've gone to Code Generator > Selected News > Detail Page (as this shows the uploaded files) > Load record Number (selected) > Show files (ticked) > show code
However, this doesn't seem to work. Am I missing something obvious perhaps? Or is it a glitch with the code itself, as technically, it's saying show all from news where client = x and x comes from the drop down.
many thanks
Re: [jarvis] show all uploads from category where field equals x
By Dave - February 24, 2010
The code generated for the "Detail Page" is designed to just show one record. Try removing this option from getRecords():
'limit' => '1',
Hope that helps! Let me know if that fixes it.
interactivetools.com
Re: [Dave] show all uploads from category where field equals x
By jarvis - February 25, 2010
Thanks for the reply. I ended up looking at a similar file on the site, copying the code but altering the relevent parts, this seems to have sorted the issue.
Thanks again
Re: [jarvis] show all uploads from category where field equals x
By Dave - February 25, 2010
If you have any other questions, just let me know. :)
interactivetools.com