Comments (6)
You can set the $_SITE['wb_search_file'] variable to point to any file you want that contains a custom search form. This is an GCWU theme example of what your search.php should look like::
<form action="searchURL.php" method="post">
<div id="gcwu-srchbx-in">
<label for="gcwu-srch"><?php echo $_SITE['wb_search_label_' . $_PAGE['lang1']]; ?></label>
<input id="gcwu-srch" name="search" type="search" value="" size="27" maxlength="150">
<input id="gcwu-srch-submit" name="gcwu-srch-submit" type="submit" value="<?php echo $_SITE['wb_search_'.$_PAGE['lang1']] ?>">
</div>
</form>
You might need to customize:
- searchURL.php - Replace this with the full URL of your website's search engine.
- name="search" - replace "search" with whatever field name your search engine likes.
- name="gcwu-srch-submit" - you may or may not need to replace this. Try it as is first.
- Add any additional hidden type fields, if you need any.
- You may need to change the POST to a GET.
You can usually get all of this information from your CMS' existing search form. For Google Site Search engine, see Google's documentation for a sample form. Just don't change anything else that might affect the appearance of the form or it won't display correctly in the WET theme.
It is easy to implement and it works great!
Let me know if you have any questions.
Best regards,
Michael
from wet-boew-php.
Thanks @michael-milette I've been meaning to get back to this. I might "borrow" you're blurb for the wiki documentation when I get to it.
from wet-boew-php.
Glad to hear it will help with the wiki documentation.
from wet-boew-php.
Finally got around to updating the documentation for the search and archived options. @michael-milette I used most of the description you provided for the Modular Search wiki page, thanks.
from wet-boew-php.
Happy to help @upsonp !
from wet-boew-php.
Just took a look. Looks great. Very clear. Wish I had that documentation when I was implementing it ;-)
from wet-boew-php.
Related Issues (20)
- remove links on footer menu headers HOT 1
- Maintenance Mode... HOT 2
- PHP Menu Generator HOT 18
- Links in header need to be updated HOT 9
- V4 missing error page coding. HOT 10
- V4 Archived page don't show ARCHIVED - in the title HOT 2
- V4 Archived text need to be updated
- Cloning just the DIST-PHP folder instead of the whole project HOT 8
- GOC Template user how do you... HOT 2
- V4 New issue found while validating with WPSS HOT 2
- WET4 changes that need to be take care! HOT 5
- wet-boew-php as bower dependency HOT 9
- wet-boew-php 4.0 HOT 11
- The Secondary Utility Menu Page - side menu doesn't work. HOT 3
- Base theme footer background is the wrong colour HOT 6
- Title is just a slash on language selection splash page of on demos-php HOT 7
- FIP images missing on 404 server pages in demos-php site HOT 6
- WET 4 - Missing support for session login/logout (sign in/sign out) HOT 3
- Please tag v4.0 branch HOT 2
- GCWeb Canada.ca Redesign theme HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wet-boew-php.