Closed (outdated)
Project:
Freelinking
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
19 Dec 2012 at 08:42 UTC
Updated:
23 Jan 2025 at 18:17 UTC
Jump to comment: Most recent
I noticed the "enabled" attribute on the plugins, but I couldn't find any way to change it. Is it so, that all the plugins provided by the module are enabled and they can't be disabled at all?
I see much use for some plugins, but I'd like to have only the ones I see fit for my site enabled and others not to be effective.
Comments
Comment #1
gisleComment #2
gisleIf you look in the documentation Creating plugins for Freelinking ver. 3, you'll see it specified as an optional argument for the
$freelinkingarray:enabled[OPTIONAL]If set to FALSE, the indicator for the plugin will be ignored. As such, syntax in the text will not activate the plugin.
This is far from ideal, because if you set it FALSE, the setting is going to be overwritten every time you do a minor upgrade of freelinking.
Also, looking at the code, the built-in "enabled" argument for the
$freelinkingarray seems to be more complex than necessary. It provides for enabling/disabling individual freelinking filters in either the context of text formats or for "all" text formats. However, creating a UI that makes use of all this flexibility seems non-trivial. Also, if one were to make use of this, the database may be populated with a large number of variables, since each possible combination of individual filter and format produces a new variable. This is abusing db variables and probably not the correct way to implement it.Overall, the whole enable/disable framework seems to suffer from very bad UI and a severe case of featuritis, and before proceeding on this feature request, it should be looked at carefully and maybe refactored.
The overall architecture is that the default filters live in ".inc" files. An alternate, and much simpler, approach would be to have a UI for specifing what ".inc" files to load, thereby disabling all filters that live in files that are not loaded. That would also create a (slightly) better performance, as the lookup code from disabled filters would never be loaded.
Postponing for now, and downgrading to "minor". If you really want this feature, please comment and let me know whether you need:
Comment #3
mradcliffeClosing issue for unsupported release. This is working as-is in newer releases.