Hi.
The search form is part of the header.cs template. Search for '<form
id="search" ...>'.
> 1. It would be great to have a drop-down next to the search textbox to
> search only tickets, or only wiki, or the changesets, etc.
In header.cs replace the current "<form ...>...</form>" stuff with:
=== cut ===
<form id="search" action="<?cs var:trac.href.search ?>" method="get">
<?cs if:trac.acl.SEARCH_VIEW ?><div>
<label for="proj-search" style="display: none;">Search:</label>
<input type="text" id="proj-search" name="q" size="10" accesskey="f"
value="" />
<input type="submit" value="Search" /><br />
Search in:
<input type="checkbox" name="ticket" value="on" checked="checked" />
<label for="ticket">Tickets</label>
<input type="checkbox" name="wiki" value="on" checked="checked" />
<label for="wiki">Wiki</label>
<input type="checkbox" name="changeset" value="on" checked="checked" />
<label for="changeset">Changesets</label>
</div><?cs /if ?>
</form>
=== cut ===
In order to fix the display you should adjust the following in trac.css:
=== cut ===
/* Quick search */
#search {
...
margin: -1em 0 3em;
...
}
=== cut ===
and remove the following line (or comment it out with "/* ... */"):
=== cut ===
#search label { display: none }
=== cut ===
> 2. I usually search with the search button, but 99% of the time, I only
> want to search tickets so it would be nice to default the other
> checkboxes to unchecked.
In the "original" header.cs use this:
=== cut ===
<input type="hidden" name="wiki" value="off" />
<input type="hidden" name="changeset" value="off" />
<input type="hidden" name="ticket" value="on" />
=== cut ===
If you use the suggestion from one, use the following instead:
=== cut ===
<input type="checkbox" name="ticket" value="off" />
<label for="ticket">Tickets</label>
<input type="checkbox" name="wiki" value="on" checked="checked" />
<label for="wiki">Wiki</label>
<input type="checkbox" name="changeset" value="off" />
<label for="changeset">Changesets</label>
=== cut ===
> 3. When searching tickets, it would be great to search only open
> tickets, or failing that, it would be great to see the ticket status, or
> else have the ticket number or name shown in a strikethrough font if
> closed.
No idea for that one at this time.
Bye, Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---