dutchsnowden Posted December 8, 2022 Posted December 8, 2022 Would it be possible that this flags are persistent? 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?
Marc Posted December 8, 2022 Posted December 8, 2022 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.
dutchsnowden Posted December 8, 2022 Author Posted December 8, 2022 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?
dutchsnowden Posted December 8, 2022 Author Posted December 8, 2022 I did make a suggestion/feature request, but I personally consider this a mistake, not a new feature. I would be just happy if all would be checked by default.
Solution Nathan Explosion Posted December 8, 2022 Solution Posted December 8, 2022 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" dutchsnowden and Marc 1 1
dutchsnowden Posted December 8, 2022 Author Posted December 8, 2022 Thanks @Nathan Explosion. I find these template in Admin CP or somewhere else? Found it in appearance in Admin CP.
dutchsnowden Posted December 8, 2022 Author Posted December 8, 2022 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.
Recommended Posts