Simple Edit and the Search button

I'm having some troubles with a site design I'm playing with. I've got a working search area set up which functions fine. However when I use Simple Edit mode and hit the Commit button it actually sends the details through the search facility. So I'm trying to work out how to remove the search area while the page is in Simple Edit.


The following is the code that logically should work (I know that Matrix can't nest though, but you can easily follow what I'm attempting with the code at least).


    
          
             
             
             
                
                   
                   
                      
                   
                   
                
             
       


In the code above the "search_box" area works fine on its own and the entire show if statement works fine with other elements.

So basically is there any easy way to achieve the same desired results: that Commit in Simple Edit works as it should and doesn't submit to the search engine.

Hiding the search block while in Simple Edit seems the best way to me but obviously its not going to work, how have others got the Simple Edit and Search Modules working happily together?

cheers

Steve

It sounds like a bug to me, actually – you should be able to have a searchbox in your design and use simple edit at the same time.


Are you able to submit a support request via support@squiz.net so we can investigate and log this?

I've just submitted it to support, I double checked it again this morning when I got in to work and checked the changelogs for 3.10.2/3 and it doesn't appear to be anything already fixed.


cheers



steve

Issue is now resolved.


Turns out there was a pesky slash in the code I was using at the start of the Form End line (4th last line of code in my post above). It was staring me in the face the whole time but it took Squiz staff to spot it for me :slight_smile:



thanks



steve

[quote]Turns out there was a pesky slash in the code I was using at the start of the Form End line (4th last line of code in my post above). It was staring me in the face the whole time but it took Squiz staff to spot it for me :slight_smile:
[right][post=“13469”]<{POST_SNAPBACK}>[/post][/right][/quote]



In fact, you don’t need to specify the <mysource_then> block if you’re not using it, likewise with <mysource_else>. :slight_smile: