Starting from Elgg 2 you don't need a custom plugin
Why? I'm working with my first plugin for Elgg 2.0 and want to know about custom plugins in Elgg 2.x
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Juho Jaakkola@juho.jaakkola

Juho Jaakkola - 0 likes
- Juho Jaakkola@juho.jaakkola

Juho Jaakkola - 1 like
- I install Elgg either by:
- Cloning https://github.com/Elgg/starter-project
- Composer command: "composer create-project elgg/starter-project:dev-master ."
- I install the plugins I need using composer (e.g: "composer install juho-jaakkola/notifier")
- I make site-specific customizations directly to the installation root
- I commit everything (except vendor/ dir) to git
- I clone the project I just made
- I run "composer install"
- Now my production site has identical versions of all the same plugins and customizations that I made in my development environment thanks to the composer.lock file!
- Juho Jaakkola@juho.jaakkola

Juho Jaakkola - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
You must log in to post replies.Starting from Elgg 2, the installation directory *itself* is considered a custom plugin, if Elgg has been installed as a composer dependency.
So instead of creating a custom plugin to e.g. override a view, you can simply drop the new view to the installation directory.
The installation root also supports start.php. So again, no need for a custom plugin. Just add start.php and make the changes you need!
I make Elgg 2 sites like this:
First on my local development environment:
Then on the production server:
Despite installation root working as a "plugin", generic features should of course still be made as separate plugins so that it's possible to share them to others.
I understand now. Thank you very much!