positioning search results

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
xtian
Posts: 13
Joined: Fri 3. Feb 2006, 09:30
Location: Germany
Contact:

positioning search results

Post by xtian »

I have a search form in the right-hand column on each page. If I search, phpwcms parses search results into the same area, i.e. the right-hand column. How can I change this so I get search results in the content area instead?

Thx for any idea!

Ich habe ein Suchfeld in der rechten Spalte jeder Seite. phpwcms gibt konsequenterweise auch die Suchergebnisse in der rechten Spalte aus. Wie kann ich dies ändern, denn natürlich will ich die Ergebnisse ja im content-Bereich haben?

Danke!
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

I would create a search page and place the actual html of the search form in the right column of your page. Then, set the form results to your search page. You'll see what I mean by using the search form at the bottom of http://www.watershedcabins.com
Pappnase

Post by Pappnase »

hello

did you read at the docu page how to create an site search!?
if not ;-) you should do it ;-)
xtian
Posts: 13
Joined: Fri 3. Feb 2006, 09:30
Location: Germany
Contact:

Thanks

Post by xtian »

@pappnase:
I had tried to find something in the documentation first then in the forum but couldn´t. Thx anyway.

Hatte ich versucht, zunächst in der Doku, dann auch im Forum - ohne Erfolg. Trotzdem danke.

@Ben:
Nice one! Works perfect. Thanks a lot. This is exactly the kind of workaround I was looking for. Changing the php stuff is always a problem when it comes to updates so I always try to avoid this. Congratulation on your website, too. Maybe somewhat off-topic: How did you do the Flash-like pic transitions? Do they come with phpwcms??

Danke! Funktioniert perfekt. Nach so etwas hatte ich gesucht, sodass kein PHP verändert werden muss und dann beim nächsten Update zu Problemen führt. Tolle website! Noch eine ganz andere Frage: Wie hast Du die nach Flash riechenden Bildübergänge im Header gemacht? Ist das eine Funktion von phpwcms?

Cheers
xtian
Pappnase

Post by Pappnase »

Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

xtian,

Thanks for your nice comments on the Watershed Cabins site and I'm glad I was able to help you with the search form. As for the homepage slideshows, I used the slideshow script from here (http://www.dynamicdrive.com/dynamicinde ... deshow.htm) in an iframe.
loub0999
Posts: 28
Joined: Sun 10. Dec 2006, 04:27
Location: Montreal, Quebec, Canada
Contact:

I don't understand?

Post by loub0999 »

I'm really sorry to bother you, but I tried to understand your instructions, you've done exactly what I want to do in my site on your site. That is place the seach form outside of the main content section and get results in the main content page.

Do you think you could elaborate a bit, step by step instuctions? I can't code, I'm a designer.

P.S.: I looked at the above link that leads to the documentation but it doesn't seem to explain how to target a diffrent section of the site templates.
The only limits that exist, are those we impose on ourselves!
-me
selbaer
Posts: 93
Joined: Sun 22. Jan 2006, 02:19
Location: Florida West Coast

Post by selbaer »

try to put the search into the {FOOTER}
loub0999
Posts: 28
Joined: Sun 10. Dec 2006, 04:27
Location: Montreal, Quebec, Canada
Contact:

I found help in another post a few hours later...

Post by loub0999 »

I found this post which gives more details on how you did what you did, the coding didn't quite work as mentioned but I figured out how to get this example working.

http://www.phpwcms.de/forum/viewtopic.p ... earch+left

THis line of code is the important one:

Code: Select all

<form action="index.php?en_search" method="post">
You replace the "index.php?en_search" with the url you get once you've created your search article according to the instructions. I followed them step by step and couldn't get it to work as they describe. Copy the article number in the url, mine was:

Code: Select all

http://firsttimesellers.com/phpWCMS/index.php?id=5,33,0,0,1,0
so the above line of code from the other post becaomes with my site:

Code: Select all

<form action="index.php?id=5,33,0,0,1,0" method="post">
Just go to the search page you create in your site and copy the url from the address bar of your browser into the supplied form code from the phpWCMS forum post link above.

Heck I'm an idiot when it comes to programming, I'm a graphic designer, if I can get this to work anyone can! :P
The only limits that exist, are those we impose on ourselves!
-me
Post Reply