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.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- Sean@sealow08

Sean - 0 likes
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
You must log in to post replies.'Posts' are by GUID# -- needs a little extra code to fetch the 'Title' - via a JOIN on the 'object' table.
Titles aren't unique, so it's not a regular task and not as simple as you might expect. It is doable though as Dhrup said.
Thanks for the feedback. Seems like this will be a bit messy. Maybe I can create a unique tag for the post and search for that or some kind of custom annotation. What I want is to display a particular group or blog post as a custom index. I'd rather not rely on the GUID, although that is what I'm doing at present. I'm a bit phobic about "magic numbers" in the code.
Well, if it's a static list that you want to show, or even just an individual post then the guid method is extremely reliable. If it's the case where you'll be adding new posts on a regular basis and older posts will be dropped then you don't want to manually list them with "magic numbers" - a unique tag is the easiest way to go.
You can easily create a unique tag with metadata. Just extend the entity menu of the particular entity for a menu which lets you controll the metadata. It is more easier way than depending on guids.