If a user canEdit() an entity, she could add one or more links to other entities, to be displayed above the comment form.
The form would take a URL. If the URL could be reliably matched to an entity, a "links_to" relationship would be formed. If not, it would require "see_also" multi-value metadata.
If order of the links are important, I'm not sure how to do that...
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.
- Steve Clay@steve_clay
Steve Clay - 0 likes
- views could change the way the linked entities were rendered
- you could show entities that link to the current entity
- you could programmatically generate maps of linked entities
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Steve Clay@steve_clay
Steve Clay - 0 likes
You must log in to post replies.To be clear, this would offer advantages to static anchors in the HTML:
Steve, an easier and alternative option will be just tag the two entities with same tag and fetch the matched entities
@Webgalli but then you're polluting the tags with a custom name for each pairing, and you don't know which entity made the relationship. E.g. you may not want to show incoming links if your entity is popular.
Ok, I think the contexts are different. What I am telling is connecting between two site entities like two blogs (as what WP is doing by pulling posts from same category or same tags).
without ordering the relationships system should be able to handle it just fine. I thought you were working on (or had worked on?) something to do with priority within relationships?
@Matt yes, a collection would also give you an ordered list of entities, but finding reverse relationships would be much more difficult. if ordering were required, it wouldn't be terrible to do both: use relationship (for reverse linking) but add each new link to the collection as well, using the collection to order the relationship query.