Jump to content

Persistent search flags?


Go to solution Solved by Nathan Explosion,

Recommended Posts

  • Solution
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"

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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