Search Form Problems

16 posts by 3 authors in: Forums > CMS Builder
Last Post: March 16, 2016   (RSS)

By Damon - March 16, 2016

Hi again,

Found the issue.

In the MITE Course ID Section Editor, course_id is not a list field. It is a textfield so there are no list values to display.

To get all the course_id values output, we need to pull them in from a list field.

They are in a list field in the Training Documents Section Editor. So based on that, here is what the stripped down code should look like:

<?php foreach (getListOptions('dms_home_page', 'course_id') as $value => $label): ?>
   <option value = "<?php echo $value;?>"><?php echo $label;?></option>
<?php endforeach ?> 

Can you try this code out and let me know if this works for you?

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Damon:  I made the change, but I see no difference in the execution of the code.

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - March 16, 2016

If you view the source of this page:
http://www.legassie.net/search.php

you will see that the course numbers are being output. Just need to adjust the code to format it correctly so it displays.

Do you see the course numbers?

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By northernpenguin - March 16, 2016 - edited: March 16, 2016

No numbers in the dropdown

P.S.  I tried it in both Chrome and Firefox.

P.P.S.  I looked at the source in the browser, and see the output, but for some reason it is not being displayed on the search.php page

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - March 16, 2016

Awesome! Thanks for the update. Glad that it is working now.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/