This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

emzero439
emzero439

I've created a project for my october site and added a few plugins from the gallery. So now the appear in the System > Updates backend section.

But I need to modify some of the plugins and I'm afraid of the changes being overwriten during an update.

What would be the proper way of adding a plugin and extending/modifying it?

Thanks

Flynsarmy
Flynsarmy

There isn't a great approach for doing this yet - the team is still working on it. At the moment you have two options:

  • Disable the plugin, clone and rename, update all namespaces to your new name.
  • Ask the author to implement the functionality you want, or add extensibility hooks in the relevant spots so you don't need to modify his code.
Flynsarmy
Flynsarmy

There isn't a great approach for doing this yet - the team is still working on it. At the moment you have two options:

  • Disable the plugin, clone and rename, update all namespaces to your new name.
  • Ask the author to implement the functionality you want, or add extensibility hooks in the relevant spots so you don't need to modify his code.

Second solution is obviously preferable at the moment.

What are you trying to do out of curiosity? It's possible you can do it without needing to modify someone elses code. For example it's possible to add missing fields/tabs to existing forms without modifying those forms directly through event hooks.

Last updated

emzero439
emzero439

Yes I end up cloning and modifying the folders and namespaces because I needed to modify some stuff, not just extend it.

Thanks

Last updated

Flynsarmy
Flynsarmy

Hey emzero439, Reread my above comment - I edited it pretty heavily after first submitting :)

emzero439
emzero439

I'm just starting with October and Laravel so I prefer to keep it simple for the moment. Copying and modifying the plugin is more straightforward and easier to do. I don't even know what extensibility/event hooks are =P

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.