Implementing a User-Specific Global Search Field in CMSB
4 posts by 2 authors in: Forums > CMS Builder
Last Post: December 12 (RSS)
By andreasml - December 8
Hi
I am thinking of a search field on the CMSB's homepage (probably within the modify_homepage.php file) that would allow users to search across all available database sections, similar to the search functionality at the top of each section’s main page. Could this functionality be implemented directly with some coding, or would a custom plugin be required? Obviously, the search results should be limited to the records accessible to users based on their specific username/password permissions.
Kind regards,
Andreas Lazaris
By Dave - December 10
Hi Andreas,
Yea, you'd need a plugin for that. What you'd do is loop over each table name, check if the user has access, and then search and return any results. You'd probably want to only show a few results from each table with a "more" or many results from one table, which would not let you see results from other tables. You'd have to think about how you want the UI to work.
Let me know if we can be of any help with that.
interactivetools.com
By andreasml - December 12
Hi Dave
Can you give me a cost estimate for such a plugin?
Regards,
Andreas
By Dave - December 12
Hi Andreas,
Sure, can you send me an email? We can discuss it offline. Meanwhile, I'll give some thought to possible options.
Talk soon!
interactivetools.com