Hi,
I'm sure this is possible somehow but I need some guidance on how to achieve this.
I have a script that access a database and pulls up a certain database entry as a standalone page.
For example:
site.com/pages/unique_pagetitle/
site.com/pages/unique_pagetitle_2/
and so on...
Now I installed elgg under site.com/user/ since I would like to implement some social community features into the site.com/pages/
I am able to load the elgg engine on site.com/pages/ and display the username etc...
Now here is my question...
How can I implement a plugin, widget or some other feature that I create on the site.com/pages/ ?
Is there some code to call a widget?
And how do I create a plugin that shows certain data based on a unique ID for each of the site.com/pages/unique_page/ ?
Each site.com/pages/ page has it's own unique ID so I am able to hook the two systems together. But what is the best approach in doing so?
I'm eading through the docs and the forums, but I'm still a bit new to elgg and al the info is a bit overwhelming.
Thanks a lot for the help...
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.
After loading the Elgg engine you can all all Elgg functions inside your site.com/pages/.
ok that sounds great, is there a function list somewhere? Any particular function to display a widget? And an easy way to make it act according to current page it is displayed on?
I think if that's possible I would need to look into building a plugin that achieves what I want, is that correct?
Digg in to the elgg code itself, particularly engine/lib folder. Thats the best starting place and you will able to answer all your questions yourself.
It sounds like what you're doing is using Elgg as a datastore and just using your own routing/templating/etc system. Is that correct? It's not really the envisioned use case, but certainly possible.
Also, can you be more specific about what you mean by "widget"? In Elgg it means something very specific, but I have a feeling that's not what you're referring to.
Team Webgali thanks a lot I'll check that out.
@Evan that is what I'm trying to achieve, yes. Elgg has a good way to store data and already a chacing system in place. However all the site.com/pages/ are not part of the elgg database..
Regarding the widgets, in elgg on the user profile you can add boxes or areas (widgets) to the profile wit certain functions, like a message board, activity stream etc....
I would like to use that on my site.com/pages/ as well. Actually I'm trying to get a few areas on the site.com/pages/ where users can interact based on the particular page based on the topic (each has it's own ID) of that page. From what I saw so far I figured the widgets from elgg could achieve that. Is that correct?
The elgg widgets are available only with in the Elgg framework. If you want to make it available in your external application, you have to copy a lot of contents like css, js etc..
elggsite.com.pages/xxxxxx *are stored in the database ;)
ok so simply running some function to pull up the widget or it's respective view will not be enough?
@DhrupDeScoop that's not what I mean actually I have external pages and in my case the elgg pages are locates at site.com/user/pages/xxxx not site.com/pages/xxxxx
you didn't q/say b4.. is site.com/user/xxx/ your special non-elgg stuff which you want to hook in for elgg trix ? if so - can do.. after all.. it's only php code and func calls ;) 'simply... some widgets..' yes but then - what do you about any (ditto) extra 'elgg-ish' css or js references ?;-P
- Previous
- 1
- 2
- Next
You must log in to post replies.