I am trying to follow the tutorial for writing my own search result renderer but I can`t seem to be able to disable the bundled search renderer and use mine.
I disabled the Image SearchResult Renderer in System Plugins from Confluence Admin -> Plugins but it still doesn`t use my renderer.
Community moderators have prevented the ability to post new answers.
How do I write a Custom SearchResultRenderer for Confluence 5.4.x? The tutorial is only available from cache and way outdated. How to disable the bundled renderer, when Confluence is not picking up my custom one?
The basic problem is, that the ImageSearchResultRenderer is called before the custom renderer developed in the tutorial: https://developer.atlassian.com/display/CONFDEV/Writing+a+Search+Result+Renderer
Is there a way to f.e. just switch the order of loading plugins via priorities or something like that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The proplem is neither the canRender method inside nore the plugin setting itself.
The problem is that, in the list of available renderers thats worked down by the DelegatedSearchResultRenderer, the built in "Image Searchresult Renderer" is on the topmost position and catches all searchresult for graphics, before any userplugin can do this job.
The tutorial should be extended with information on how and where to disable the built in "Image SearchResult Renderer".
Strange is, that other system renderers are below the userplugin and that there is no possibility to set a plugins priority (system=true in descriptor won't help).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Disabling the "Image Searchresult Render" plugin definitely disables that renderer from working. You can ensure that this is true by disabling it and then doing a search that returns images - the image thumbnails will no longer be rendered.
Here are some things you can check to try and identify why your search result renderer is not working:
1) Ensure that your plugin and all its modules are listed as enabled in Confluence Admin -> Plugins
2) What are you doing in the canRender(SearchResult) method? Try temporarily setting it to "return true" for everything in order to ensure that it works.
3) Add logging statements when your search result renderer is constructed and invoked, and see if the log messages are actually generated.
If you have any follow-up information we can use to troubleshoot further, please add it here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.