Page 1 of 1
positioning search results
Posted: Thu 30. Mar 2006, 10:17
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!
Posted: Thu 30. Mar 2006, 10:34
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
Posted: Thu 30. Mar 2006, 11:29
by Pappnase
hello
did you read at the docu page how to create an site search!?
if not

you should do it

Thanks
Posted: Thu 30. Mar 2006, 12:34
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
Posted: Thu 30. Mar 2006, 12:36
by Pappnase
Posted: Fri 31. Mar 2006, 03:24
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.
I don't understand?
Posted: Wed 17. Jan 2007, 19:22
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.
Posted: Thu 18. Jan 2007, 01:52
by selbaer
try to put the search into the {FOOTER}
I found help in another post a few hours later...
Posted: Thu 18. Jan 2007, 15:08
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!
