Hi all, so I got fed up with waiting for someone else to do it and wrote a little extension to add a column to the edit page which shows the category assignment of entries. Obviously entries can often have numerous categories so there’s a setting to configure a display limit and when this is in use additional categories will be displayed when hovering over the primary category for that entry (via the abbr tag).
This is my first extension that interacts with the edit page so I’m not sure whether it’s possible to control the placement of the extra column or not, it’s current location at the end of the row is not ideal… if anyone knows of a way to adjust that or whether it’s possible to add more than one column to the edit table at a time, let me know! 😊
http://ninefour.co.uk/labs/show-categories/
Finally, I should mention that I used the md_weegee extension as a starting point in developing this so some kudos there to Ryan for his extension that provided me with the building blocks for this.
Hi Nathan,
Neat little extension that one, well done. Just wondering though would it be possible to get the categories showing in a drop-down menu possibly? That way the limit could be a lot higher. Saying that though I do like what you did with the abbr tag, very neat 😊 Thanks for sharing too.
Best wishes,
Mark
Hi Sue & Mark. Thanks for the feedback. I just spotted a couple of issues with the extension, specifically that it conflicted with Ryan’s extension since it was using the same method name in response to the hook. I’ll nudge Ryan and see if he can change his method to something more unique as at present it matches the name of the hook.
I’ll re-post here once I’ve pushed the update live… I’ve also just knocked out a ‘Show entry views’ extension… much the same but it shows the number of views each entry has had in an additional column…
😊
I’ll re-post here once I’ve pushed the update live… I’ve also just knocked out a ‘Show entry views’ extension… much the same but it shows the number of views each entry has had in an additional column… 😊
Yep just noticed that one 😉 looking forward to it.
Any thoughts on the drop-down idea?
Best wishes,
Mark
I’ll be honest, I’m not convinced by the drop down select idea as it wouldn’t perform a function, or did I misunderstand? 😊
Sort of and sort of not 😉
The reason I thought it might be a good idea is then you could show more categories at once. If a post has any more than about 5 categories then the column would start to get quite unusable so I just thought that by using a drop-down it would enable you to easily see all the categories assigned to that entry at once or at least a lot more in one go.
Admitted I don’t think this is the best option either as a drop-down to me seems more like it should have an action as opposed to just showing something but maybe you could put it in as an extension setting option?
The other thing I was thinking is some fancy shmancy javascript which builds on your abbr tag idea and instead when you hover over the categories and get the list shown the way it is now you could fade in a div which has all the categories shown there instead. It’s just that any entries that have lots and lots of categories may look odd in the way it is working now although I must admit I haven’t tested it out on a site where I do have lots of categories yet as I’m not at my main computer to be able to do that so it might turn out that it looks fine in which case I will shut-up! 😊
Just a few thoughts though.
Best wishes,
Mark
Very nice, thank you. FYI, seems to conflict with the Restrict Entries To Member Groups extension also, which adds a column to the Edit list to show if the entry is restricted.
Thanks for the heads up @smartpill, I think this may be the same issue that caused a conflict with Ryan’s extension. I’ve updated Github with a new version that should resolve this.
http://github.com/nathanpitman/np.show_categories.ee_addon/zipball/master
I’ll download the Restrict Entries extension and check though.
Yes, the rows are a bit taller, but it’s ok. The benefit of seeing the categories outweighs the bloat.
I thought of a few options you could build in to your extension:
Hi Nathan,
After upgrading to ExpressionEngine’s 1.6.8 build 20100121 I noticed that Show Categories extension does not work anymore. Instead a list of PHP errors is being shown on the top of Edit page. Those are such error messages as
Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166 Notice: Undefined index: entry_id in /home/classics/public_html/eesys/extensions/ext.np_show_categories.php on line 166
This is amazing extension; it would be nice if it were possible to use it with current and future builds.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.