Hi!!!
I want to change how elgg_list_entiti displays the blog's post.
How I can do?
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.
- Cash@costelloc
Cash - 0 likes
- Antonio Arebalo@haciendomagia
Antonio Arebalo - 0 likes
- Kevin Jardine@kevin
Kevin Jardine - 0 likes
- André Costa@andre118
André Costa - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
You must log in to post replies.Entities in Elgg have corresponding views used to render them. A blog uses the view "object/blog". A file is "object/file". A user is "user/default".
Thanks Cash!
(I'm learning, slowly, but I know how it works ...)
Estoy aprendiendo, de a poco, pero voy conociendo como funciona...
Also note that elgg_list_entities allows you to specify an alternative viewer function. This is good for one-off changes to how the entity is displayed if you can't achieve that by simply extending the existing view.
If you want to replace the view everywhere then it is much easier to just over-ride the views Cash mentioned by placing a revised version in your own plugin.
2-years old topic and still very usefull, thanks for the replies.
How is one supposed to know what views are called on list_entities, or any other elgg function?
I searched the source for an answer but couldn't find anything beside calls to page/components/*
As Cash said the views used by elgg_list_entities() can be found from the directory:
So the view for e.g. an object of subtype blog can be found from: