Searching CMSB Content

5 posts by 2 authors in: Forums > CMS Builder
Last Post: March 17, 2008   (RSS)

By InHouse - March 17, 2008

I'm obviously having a slow-brain day here, but I'm not having much luck with a content search function.

I think I'm missing how the search form's content is being passed to the CMS engine and then generates a results page.

Goal: standard 'search now' form (text box with button) is needed on every page. User enters a search term and all 'content', 'summary' and 'title' fields in selected tables are searched.

Output: new page with list linked headlines (ViewPage style). Links should point to the found article's normal display page.

I've read the search function docs and some related posts but I'm obviously still not quite on board.

Can you please point me in the right direction?

Best wishes,
Jayme

Re: [InHouse] Searching CMSB Content

By Dave - March 17, 2008

Try creating a search for like this that posts to your list page. Something like this:

<form method="POST" action="/path/to/your/listViewer.php">
<input type="text" name="title,summary,content_keyword" value="">
<input type="submit" name="submit" value="Search">
</form>


Give that a try and let me know if it works.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Searching CMSB Content

By InHouse - March 17, 2008

Hi Dave,

Yes, so far so good. That looks a lot like my test version. The form seems to process but then responds with nothing.

I have a 'search' Section Editor and I've used the auto generated 'List View' result code from it to hopefully display the search results. Is that the right approach?

Having looked at the search function mentioned on another thread on this forum, it looks to be doing the same thing as mine... nothing much. ;-)

J.

Re: [Dave] Searching CMSB Content

By InHouse - March 17, 2008

I've sent you PM with the URL Dave.
Thanks!
Jayme