hi i want tab in navigation bar named => Categories, and i want to link Categories to all the Categories of the site which has been created till date.
for example
there is a tab called => Tags in my site and Tags is linked to => http://localhost/tags this show me all the tage added to site
Same thing i want for Categories.
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.
- Aniket Kadam@ackadam
Aniket Kadam - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Aniket Kadam@ackadam
Aniket Kadam - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Aniket Kadam@ackadam
Aniket Kadam - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Aniket Kadam@ackadam
Aniket Kadam - 0 likes
- Aniket Kadam@ackadam
Aniket Kadam - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
You must log in to post replies.Please help some suggestion can also work.
You can register the menu item using function elgg_register_menu_item(). Then you'll need a page handler that handles the request to the url that the menu item points to.
It's propably good to use something else than "categories" in the url since that is already used by the categories plugin.
In the actual page code you can get an array of all the categories with this:
can any one provide some steps for writing a plugin for Categories
Have you read the plugin tutorials: http://docs.elgg.org/wiki/Tutorials
I think the blog tutorial is most useful when writing a plugin like this. The tutorial explains everything you will need to write your own plugin.
Don't get anxious if the tutorial first seems too difficult. Your plugin will propably be much simpler than the blog plugin and need only a fraction of the code that the blog uses.
yes, i read the tutorials but can you tell which which elgg to overide
There's nothing to override in this case - you're adding new functionality.
Follow the blog tutorial almost exactly - change the name of the plugin and pagehandler to something unique (and named logically) and go from there. The blog tutorial shows how to make the link, how to create a page. When you get to the page creation, just substitue the blog list with your own code for showing categories.
this code
can i directly modify the side wide categories to get a category tab just side to the wire to list all the categories created till date
Directly modify as in not create your own plugin at all? That is not a good idea. If you do it, the plugin may get broken the next time you update your Elgg. It is better to create your very own plugin that does what you need.