New guy with, I hope some easy questions to answer

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 7, 2008   (RSS)

By Chris_t - February 7, 2008

Hello all I work at a design company and have used several of the interactive tools before this is the first time for the new CMS and have a few questions.

1. The search yes I have read the new page about adding a search box. My question is, only part of the site will be in the CMS will I have to create a page in CMS for the search? I am not getting how a non CMS page with a search form will know to hit the correct database and look up what the person is looking for.

2. One site we are working on adding CMS to is a local sports team I have played with the list view and have got it looking how I want it my question is. On the list view when you bring up the players I have there jersey number, name and position. At the top of the page I want them to if they click player name it sorts the list by name or if they click position it sorts by position.

3. This is a more of has anyone else had this happen. When I work on the php in Dreamweaver MX it just wipes the <?php echo "<?xml version='1.0'?>\n"; ?> out. I have to work on it not save and use good old trusty notepad to save it.

Thanks in advance for any advice you all might have I am sure I will have more questions and in time able to help as well.

Chris

Re: [Dave] New guy with, I hope some easy questions to answer

By Chris_t - February 7, 2008

Thanks Dave I get the search now. On the viewer search page they have in the example "<form method="POST" action=" ">" I was stumped as to what would go in the action now it makes sense. I will try out the sort code soon and tell you how that goes. Can I have it search more than one field at a time? If they say type Tom brady or quarterback can it search not just player names but also poisons.

Thanks again

Chris

Re: [ChrisTitchenal] New guy with, I hope some easy questions to answer

By Dave - February 7, 2008

Thanks, I've updated that doc page so it will be less confusing for others.

Yes, you can search multiple fields. If you want to search multiple fields for the same thing you'd do it like this:

playerList.php?name,position_keyword=tom

That would search the name and position fields for the keyword "tom". If either field matches you'll get a result. If you wanted to search multiple fields for different values you'd do it like this:

playerList.php?name_keyword=tom&position=quarterback

Both fields must match to get a result. And you could do that with form fields like this:

<input type="text" name="name,position_keyword" value="tom">

or

<input type="text" name="name_keyword" value="tom">
<input type="text" name="position" value="quarterback">

Hope that makes sense. Anything else you need just let us know.
Dave Edis - Senior Developer
interactivetools.com