Feminist SF Wiki:Sidebar search: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(index) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 19: | Line 19: | ||
<input type='submit' name="go" class="searchButton" id="searchGoButton" | <input type='submit' name="go" class="searchButton" id="searchGoButton" | ||
value="<?php $this->msg('go') ?>" | value="<?php $this->msg('go') ?>" | ||
/> | /> <input type='submit' name="fulltext" | ||
class="searchButton" | |||
value="<?php $this->msg('search') ?>" /> | |||
</form> | |||
</div> | |||
</div> | |||
</pre> | |||
* Move it either up or down in the page code, depending on where you want it positioned. | |||
* A good place to put the search box is just below the logo. To do this, move or copy the above code directly '''below''' where you find the following: | |||
<pre> | |||
<div class="portlet" id="p-logo"> | |||
<a style="background-image: url(<?php $this->text('logopath') ?>);" | |||
href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>" | |||
title="<?php $this->msg('mainpage') ?>"></a> | |||
</div> | |||
</pre> | |||
[[Category:FSFwiki administration|{{PAGENAME}}]] | |||
[[category:FSFwiki admin index|{{PAGENAME}}]] | |||
Latest revision as of 06:51, 9 March 2009
Copied from http://meta.wikimedia.org/wiki/Layout_customization#Customizing_the_page_layout on 2007/1/4
How do I move the location of the search box?
This is for the Monobook theme and involves modifying the Monobook.php file - you can see the effect here.
- In the shell account with the install files, find and select the following code in skins/MonoBook.php:
<div id="p-search" class="portlet">
<h5><label for="searchInput"><?php $this->msg('search') ?></label></h5>
<div class="pBody">
<form name="searchform" action="<?php $this->text('searchaction') ?>" id="searchform">
<input id="searchInput" name="search" type="text"
<?php if($this->haveMsg('accesskey-search')) {
?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php }
if( isset( $this->data['search'] ) ) {
?> value="<?php $this->text('search') ?>"<?php } ?> />
<input type='submit' name="go" class="searchButton" id="searchGoButton"
value="<?php $this->msg('go') ?>"
/> <input type='submit' name="fulltext"
class="searchButton"
value="<?php $this->msg('search') ?>" />
</form>
</div>
</div>
- Move it either up or down in the page code, depending on where you want it positioned.
- A good place to put the search box is just below the logo. To do this, move or copy the above code directly below where you find the following:
<div class="portlet" id="p-logo">
<a style="background-image: url(<?php $this->text('logopath') ?>);"
href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"
title="<?php $this->msg('mainpage') ?>"></a>
</div>