Calling method in the views/default/navigation/menu/site.php page

By bilel

Hello ElggCommunity,

I need to display some information calculated from a function in the menu item in navbar menu in my webapp like Discussions(70)  (for example)

in the Elgg site.

I noticed that this method returns the number of all entities even the private one (access_id = 0 and the connected user doesn't have the privilege to see this entity). I used the same method in another function in lib folder and behaves properly.

How should I do to display only the permitted entities ?

Thank you.



Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking