3

I've been trying to figure out how to do this, but nothing seems to really work:

I want to override the results/pagination renderers from ZOOFilter which I know is in /plugins/system/zoofilter/zoofilter/layouts/{search,_pagination}.php, however it only appears that I can override templates?

The way that ZOOFilter is currently built is that it does not have any /tmpl directories in any of the plugin's locations within my installation, and obviously overwriting the plugin's code itself is more or less out of the question.

1 Answer 1

2

To override zoofilter plugin: if you create your own system plugin with the same zoofilter class and it's loaded in order before zoofilter (you can even disable it), it should never be instantiated.

3
  • So would I have to make a copy of the plugin, or would I just make a system plugin that only contains the files that I want to override? Edit: joomla.stackexchange.com/a/207/1670 That kind of sucks.
    – Mark
    Commented Jul 21, 2014 at 11:57
  • Both ways are valid. It's better if you include original files, you can re-use part of the original code, avoiding more code duplication.
    – Anibal
    Commented Jul 21, 2014 at 12:21
  • I changed the question title to better reflect my issue. It seems I was mistaken earlier.
    – Mark
    Commented Jul 21, 2014 at 12:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.