Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- concrete5 search in template -->
- <div id="search">
- <form action="/search/search-results/" method="get">
- <input name="search_paths[]" type="hidden" value="" />
- <input class="searchBlockSearchField" name="query" type="text" value="" />
- <input class="searchBlockSubmitButton" name="submit" type="submit" value="Search" />
- </form>
- </div>
- or in PHP:
- <?php
- $bt_search = BlockType::getByHandle('search');
- $bt_search->controller->title = 'Search';
- $bt_search->controller->buttonText = 'Go';
- $bt_search->controller->baseSearchPath = '';
- $bt_search->controller->resultsURL = 'search-results';
- $bt_search->render('view');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment