If you have a resource file (where you draw the page) you can load the JS you need on that page, with the function elgg_require_js()
If you have JS you need on every page (mostly not the case) you can extend the elgg.js view in your elgg-plugin.php. Or you could make a Bootstrap class, register is in the elgg-plugin.php and the init() function (if done correctly) will automatically be called on every page.
You see, I followed the Developers plugin, but could not understand how it was routing and registering it in the menu.....
Please clarify this setup, for my routing, I need to put my php files in the following location:
/var/www/html/elgg/mod/curriculum/views/default/resources
But in the bootstrap init() function, if I want to cal the code,
elgg_register_external_file('js', 'curriculum', elgg_get_simplecache_url('js/curriculum.js'));
elgg_load_external_file('js', 'curriculum');
or load a php file, all the js and php files should be in the resources folder only,
or whether it should be in the folder which has the bootstrap file....for since init() function would call it in every page....
I don't think the Developers plugin is a good example of how you should route to content pages.
Best have a look at the Blog plugin.
Routes are defined here:
Learn more about routing http://learn.elgg.org/en/stable/guides/routing.html
The loading of a JS file can be seen here
and the JS file is located in /mod/blog/views/default/forms/blog/save.js
elgg_register_external_file() and elgg_load_external_file() shouldn't be needed is most cases.
Learn more about JS in Elgg http://learn.elgg.org/en/stable/guides/javascript.html
You also mentioned menu items, check this http://learn.elgg.org/en/stable/guides/menus.html
In the Blog plugins this is registered here
There're only these unsupported and outdated plugins:
https://elgg.org/plugins/2085423
https://elgg.org/plugins/1205095
https://elgg.org/plugins/1198657
https://elgg.org/plugins/1190435
In Elgg v5 a site administrator can configure theme variables like colors on the backend (Configure -> Theme). There are also options to upload a favicon or change the site name. This however does not allow a site admin to change layout of the site. To do that you probably need a (custom) theme.
I don't know if it is against Elgg's netiquette to necro an old thread, but it fits the question I was just searching for perfectly, so I try my luck.
As the OP of this thread wrote: For Elgg [now:] 6, there is no functioning market plugin and also no plugin for video integration (which I assume OP meant) available.
Both are things that my site's users have requested, with a few of them even saying that without these options, the site's usefulness is very small for them (it's mostly about music promotion).
Are there any working plugins for shop or video available for Elgg 6 at all? Whether free or paid?
On Github, I found a new, promising sounding Paypal Marketplace plugin:
https://github.com/mwrightdev/paypal_marketplace
Unfortunately, it doesn't work for me (no settings page available), thus I cannot test it.
I also tried some older plugins, e.g.
https://elgg.org/plugins/3130536 (Agora Classifieds) --> won't work on my installation
https://elgg.org/plugins/2600158 (Market) --> won't work on my installation
https://elgg.org/plugins/594161 (iZap e-Commerce) --> Last updated 20312 days ago; not available anymore
https://elgg.org/plugins/384975 (iZAP-Videos) --> won't work on my installation
I know the WZM website and they have some e-commerce plugins, but they are for Elgg 5 and depend on their own individualised theme which doesn't suit my project.
Are there any such plugins available from anyone? Or plans for it? Is there no other Elgg-platform anymore that could use such plugins? I'm wondering who is using Elgg these days and for what purposes. The Elgg community seems to have shrinked dramatically during the last decade or so. I don't know what happened there, but I think that today we need alternatives to big corp more than ever, and Elgg works really nicely for me after I finally got everything running as I wanted.
I wished I could help with such plugins. If I would have the skills, I would take old plugins and try to renew them. Unfortunately, I'm not able to do that.
https://elgg.org/plugins/2600158 (Market) --> won't work on my installation
Market plugin is supported by me at the request of Elgg community.
I'll try to find time to update it for Elgg 6.
On Github, I found a new, promising sounding Paypal Marketplace plugin
There are many developer errors in the plugin code.
There is also this plugin, but it's for Elgg 5 too.
What are the problems to ask the developer about it?
Nikos continues to work with Elgg and he is a very good developer.
Ask here also https://t.me/elggchat
@rivervanrain yes Nikos has very good plugins, but I would like to know if someone could update it to the latest version of Elgg, since it has a lot of potential.
@nlyberakis we talked about it on Github, I was just wondering if anyone had an idea to update it. I haven't been in contact with Elgg for a long time and I would like to be able to use this plugin.
https://github.com/nlybe/Elgg-Sharemaps/issues/13
If anyone is interested before Nikos updates or can guide me.
Developer is here.
custom_index isn't compatible with Elgg Landing Theme.
You can find a warning about this in the plugin description.
Please ask your questions on the plugin page in the future.
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.