A Freelinking UI would be a separate module (or project) from Freelinking to expand on the admin page to put plugin override and plugin creation powers in the hands of site administrators.

The idea is to create an interface that allows the build-out of plugins from scratch, or override plugins and save the changes to the database. This sounds like the model Views uses, which implies the use of Chaos Tools. This has the added advantage of giving us a lot of swishy power, and providing exportables.

Comments

Grayside’s picture

Because this would be dependent on a database, it should possibly be packaged in the same project as #637842: FL3 DB Functionality Through Separate Project.

It might be worthwhile to consider some FL3UI options that could be incorporated into FL3 "Core" on a variable_set/get basis. For example, overriding plugin weights is something I could see site builders wanting without needing to otherwise override or create new plugins.

In this specific case, the full Freelinking UI would probably end up on a separate page and exclude weights for ease of integration with Freelinking.

arhak’s picture

and exclude weights for ease of integration with Freelinking

I didn't get it,
what?

Grayside’s picture

The post was a little confusing on that point. Basically, Freelinking "Core" should have an interface which overrides the weights specified by the individual plugins.

arhak’s picture

@#3 sure about that?

it sound reasonable, once you consider a plugin defined its weight knowing its precedence, but not every plugin developer will be aware of the remaining existing plugins (they might be several of them)

the UI should assume those weights as "suggestions", the final call is on the hands of the Drupal's guru configuring it, right?

arhak’s picture

for instance, whenever I'm weighting a custom module (hook install) I leave a comment stating why
(e.g. ensure before modules X, Y, Z bug after modules A, B, C)

actually I have a helper mod which allows me to be more declarative
I just call a helper function requesting it to be installed after a list of modules

but the same problem arise, I don't know every module there is, and the weight I chose might enter in conflict with some weird module that might be tweaking the same stuff my module is

therefore, leaving a comment with the list of modules toke into account is kind of documentation in case such a conflict arise, and the solution would be to manually change its weight in the system table or use the Utility module to get UI support for changing module's weight

won't you be interested in letting UI to change the plugins' weights?

Grayside’s picture

We are talking at cross-messages here, let me step back. Module weight and plugin weight are different things.

In -dev, you can now specify something like 'weight' => -10 in your plugin definition. This affects the sort order of the plugin in all locations, including the order in which plugins are processed in filtering the text. This has greater significance once multiple plugins can share the same syntax (#647940: Syntax Definition by Plugin).

My point here (in which I successfully contradicted myself once) is:

  1. Using the Freelinking UI to define a new plugin naturally includes defining a default weight for that plugin.
  2. Freelinking "core" should get an interface in which you can drag-and-drop override whatever weights the plugins specify.
arhak’s picture

Module weight and plugin weight are different things.

yes, of course, I was taking that as an example

plugin's weights => filter's priorities
modules's weights => hook's priorities

the same as module's weight was not thought to be changed via UI, maybe plugins might wan't to keep weights re-sortable
if not, it would be just a matter of disabling their weight widget in the UI while leaving enabled those plugins defined via UI

Grayside’s picture

You are worried about plugins that have a compelling reason for the weight the developer set, yes?

I am not planning to pursue a Weights UI for a while yet, until the use of weights in practice becomes clear. Breaking #650386: Plugin Weights UI into a separate issue.

juampynr’s picture

Status: Postponed » Postponed (maintainer needs more info)
gisle’s picture

Version: 6.x-3.x-dev » 7.x-3.3
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

This is beyond the scope of Freelinking.