Hi guys,
I need help.
I have a page_element that needs to render links mod/.../?subtype=(subtype of the current page)
How do I get the subtype of the current page? E.g. if I am in the blog view, how do I make subtype link to blog without defining it as blog?
Thanks
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.
- Jeff Tilson@jrtilson
Jeff Tilson - 0 likes
You must log in to post replies.Pages don't have subtypes (The ElggEntity definition of subtype). Are you maybe thinking of the context?
You can get the current context with: get_context()
More info on that here: http://docs.elgg.org/wiki/What_is_context_and_how_does_it_work%3F