Replace WYSIWIG editor in search field


(Ryan Archer) #1

I've created a nested search page that is setup for searching through all the News Items within the website.

I have fields setup to search via date, title, contact name, summary and body.

 

Have setup the keywords in the initial search bodycopy but the field for searching the News Item's summary and body content is a WYSIWYG editor and looks real ugly! How can I get it just to display a multi line text field instead - a visual editor is so unnecessary...

 

BTW, we are currently still using Squiz Matrix v4.18.4


(Bart Banda) #2

The search fields are created based off the field they are searching, so because you are searching WYSIWYG fields only, it will print a WYSIWYG field on the front end (we should probably change this so that a text field is used always). You could try target that search field to another asset attribute/metadata field that uses a text field (or any other field really) instead, such as a date field or URL attribute perhaps, some field that could also be searched, maybe just a Yes/No option attribute of the details screen of the news item? That way the automated search field produced by the search page for that would hopefully just generate a text field because you are searching multiple types of form field types (WYSIWYG and select field). 


(Ryan Archer) #3

I honestly felt like asking you to repeat that in 'plain english' lol.

Yeah, anyways included a search on a text field into the equation and it did override the behaviour and generated a text field for searching rather than a WYSIWIG.

 

Yeah please change this default behaviour because ABSOLUTELY NO ONE would want it like this.


(Bart Banda) #4

Agreed, I've lodged a bug report for it in Squizmap now and should hopefully be fixed in the next release. https://squizmap.squiz.net/matrix/7150