I'm lost. Instead of posting a bunch of trails I have taken which might be more confusing than informative, let me ask a general detective question.
I'm trying to keep my search form boxes in the same location after a search is performed but whenever I use either one, the actual submit button gets an incremented ID and thus the css breaks.
I'm trying to track down how the results are returned. I don't see a View, a Panel or Page so where in Drupal should I begin to see what is being used to format the results of a search?
It's not page.tpl.php because that is being used everywhere besides the front and when navigating through the site, everything is kosher. Only when actually submitting a search does the submit button pressed get changed.
Any ideas or places to point me to?
Comments
The button should have a
The button should have a class you can attach your CSS to rather than the ID. The number appended to the ID is to ensure that the form can be submitted if/when multiple forms of the same type of form occur on the same page. If you don't remove the functionality that appends this number, you will break functionality. So you shouldn't be looking to remove the number, you should be looking to use different CSS selectors.
Jaypan We build websites
They both have the same class
They both have the same class "form-submit"..not by me.
But, you gave me something to think about. I suppose I can create a chain for specificity and override by using the container ID and a class.
I'm trying to keep my search
From the above comment, it sounds like you need something with a generic class, since you are speaking of how the incremented ID doesn't work. And in your next post:
It appears that you have a generic class for the button.
So I'm not really clear on what your problem is/was. It would appear I have put you in the right direction, but from your reply, it would appear that there is still a problem. So please explain your situation with specific examples of what you are speaking of.
Jaypan We build websites
What I am trying to replicate
What I am trying to replicate in terms of functionality can be seen here: http://www.sharpsma.com
Enter a search term into the top right box and check the submit buttons in FireBug.
There are two search forms on the front page. One is from the fuzzy search module and the other, in a left side bar, is just this code put into a block:
<form name="search_inventory" action="/inventory"><input type="text" size="20" name="part_number">
<p>
<input type="submit" value="Search Inventory">
</p>
</form>
I'm not sure why the above search is not returning results. The path becomes: http://localhost:8888/inventory?part_number=lq0 (for instance)
Which returns a "The requested url doesn't exist".... I'm running via MAMP with php/apache/mysql all working fine but that search field doesn't work. There are no domain specifics checked for that specific block which holds that snippet of code.
So, as to my original question, if I can find how, within Drupal that particular search box results are displayed, I can start tracking from there....the one that has an action of "/inventory".... I can't seem to find where in Drupal to tell Drupal what that url is to do.