Hi All - I am on my second Elgg plugin development and am hitting some problems, and could do with some more expert help please.
I am writing a plugin which will allow you to see a stream of all blog posts that ayou have permission to see, for a selected user, output on a single page. The reason for that specific display of blog posts is for assessment of blogs in an academic context.
I've got my 'stream of blog posts' part of the plugin working nicely, and now I'm focussing on how to select a specific user and reach their 'stream' page.
At the moment I'm using elgg_list_entities to output a list of all users within my plugin, but of course the default url for each user takes you to their profile page. I think there's 2 sensible things to do from here, but I'm strugging to see *how* to do them:
1. Somehow override the default url used for each user to link directly to the stream of blog posts instead of their profile. Is there any way of doing this and still using elgg_list_entities? or do i need to do something more significant?
OR
2. Ditch my list of users in the plugin and somehow hook the stream of blog posts option directly into the standard Profile page.
I don't want to remove the option for the site administrator to change out the profiles plugin if they want to (but can accept that might need to be a constraint). More than that I don't want to give us problems for future upgrades by hacking the core plugin. Is there any way of extending the profile plugin without touching the profile plugin code?
Has anyone with more understanding of elgg_list_entities and the Profile plugin got any bright ideas for me? My only other option is a 'for each' loop and some very nasty hacky inline HTML which I am ashamed to even be considering.
Thanks in advance.
Ammie.
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.
Libertarian "Women explain love declarations. Men explain handler declarations." - that made me nearly splutter porridge on my monitor this morning as I lolled :-)
Michele: 'not creepy' = "I'd buy you a beer if we ever met; I'm not going to turn up on your doorstep or boil your pet rabbit, so don't freak out."
Now that made me laugh! Thanks for that :)
- Previous
- 1
- 2
- Next
You must log in to post replies.