1

I'm creating a plugin and I've been following the Mijingo Craft plugin development videos. I reached the point where a column was added to the entry index page. I was looking to do something similar but on the Entry type index page /admin/settings/sections/{ID}/entrytypes.

I was unable to find anything in the documentation (maybe I missed something). But is there a method I can use to do this? or is it not possible?

  • I'm curious about the use case here. Care to elaborate? – Mats Mikkel Rummelhoff Jan 8 '16 at 8:29
  • @MatsMikkelRummelhoff I'm counting the number of entries that use a specific entry type. clients have come to me several times asking for this. thought it'd be neat to see the entry count on entry type index page – Pindo Jan 8 '16 at 8:34
  • Honestly, I'd advice against giving clients admin access (which you'd need to see the entry type index) unless they absolutely need it. That being said, considering the fact that what you want to do isn't possible without hacking core files – how about a writing a plugin which adds a custom CP section instead? That CP section could contain the stats you want to expose to your client, and would even be available from the main menu. – Mats Mikkel Rummelhoff Jan 8 '16 at 8:45
  • @MatsMikkelRummelhoff I've created the CP section and widget that displays these stats already :) – Pindo Jan 8 '16 at 9:08
  • Alright, good call. Regarding the entry type index – no offence, but I personally wouldn't want my clients messing about inside Settings just to view some stats (even if they are tech savvy). The CP section and widget sounds like a good solution! – Mats Mikkel Rummelhoff Jan 8 '16 at 9:14
3

Unfortunately, that's not possible currently.

If you feel that a hook for customizing the Entry Type listing/index should exist, you can add a feature request.

1

If I understand your question correctly, you are looking to see your custom field in under the Entries index page of the Section.

This is what I know from Craft CMS ver. 2.5 or 2.6

On the Entries index page of the Section, click on the settings icon found on the left side bar, ensure you are on the section to show/hide the columns.

Hope this is useful for you.

  • That feature is available in the element indexes (i.e. /admin/entries/news). The OP is specifically asking about the entry types index inside the settings (i.e. /admin/settings/sections/2/entrytypes. – Mats Mikkel Rummelhoff Jul 15 '16 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.