Jump to content

Persistent search flags?


Go to solution Solved by Nathan Explosion,

Recommended Posts

Posted

 

Would it be possible that this flags are persistent?

Could contain: Page, Text, UML Diagram, Diagram

For me, most important flags are recipient/sender names to search here, and it is very annoying they are reset at each operation. Would it be possible that we make it remember last setting?

 

Posted

There is no way in which to do this at the present time. If you wish to see something like this in the future, you would need to add this as a suggestion.

Posted

At least make them always default too? Makes no sense to leave them out. 

 

I mean I see no useage scenario when I would ever like to leave out the recipient or sender name from search. Is there such a scenario that makes sense?

  • Solution
Posted
23 minutes ago, dutchsnowden said:

I would be just happy if all would be checked by default.

Template edit:

core -> front -> messaging -> template

Find:

<li class='ipsMenu_item {{if ! empty(request.search['recipient'])}}ipsMenu_itemChecked{{endif}}' data-ipsMenuValue='recipient'><a href='#'><input type="checkbox" name="search[recipient]" {{if ! empty(request.search['recipient'])}}checked="checked"{{endif}} recipientvalue="1" id="search_recipient"> {lang="messenger_recipient_name"}</a></li>
<li class='ipsMenu_item {{if ! empty(request.search['sender'])}}ipsMenu_itemChecked{{endif}}' data-ipsMenuValue='sender'><a href='#'><input type="checkbox" name="search[sender]" {{if ! empty(request.search['sender'])}}checked="checked"{{endif}} value="1" id="search_sender"> {lang="messenger_sender_name"}</a></li>

Remove the if/endif either side of ipsMenu_itemChecked and checked="checked"

Posted

I did change that block to this:

<ul class='ipsMenu ipsMenu_selectable ipsMenu_auto ipsHide' id='elSearchTypes_menu'>
	<li class='ipsMenu_title'>{lang="messenger_search_menu_title"}</li>
	<li class='ipsMenu_item ipsMenu_itemChecked' data-ipsMenuValue='post'><a href='#'><input type="checkbox" name="search[post]" checked value="1" id="search_post"> {lang="messenger_search_in_post"}</a></li>
	<li class='ipsMenu_item ipsMenu_itemChecked' data-ipsMenuValue='topic'><a href='#'><input type="checkbox" name="search[topic]" checked value="1" id="search_topic"> {lang="messenger_search_in_topic"}</a></li>
	<li class='ipsMenu_item ipsMenu_itemChecked' data-ipsMenuValue='recipient'><a href='#'><input type="checkbox" name="search[recipient]" checked="checked" recipientvalue="1" id="search_recipient"> {lang="messenger_recipient_name"}</a></li>
	<li class='ipsMenu_item ipsMenu_itemChecked' data-ipsMenuValue='sender'><a href='#'><input type="checkbox" name="search[sender]" checked="checked" value="1" id="search_sender"> {lang="messenger_sender_name"}</a></li>
</ul>

but nothing changed. Do I need to rebuild the cache or something?

Perfect, I was editing wrong template!

Thanks a bunch!

 

It works now how I would have expected it to be by default.

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...