#Adding Component File Paths to Collections `admin.custom`

9 messages · Page 1 of 1 (latest)

gaunt quiverBOT
#

Hi, is it possible to add a component file path to the collection's admin.custom and then use the file path to import the component? Like if I'm rebuilding the Sidebar and I wanted to add icons next to each collection's title in the sidebar, I'd use the admin.custom to put some custom data there, but I'm wondering, can I put import paths?

glacial saddleBOT
#

Original message from @icy cedar - Moved from #general message

#
prisma pilot
#

Hey @icy cedar,

I don't think you need admin.custom here to be honest. When you say sidebar do you mean the nav?

#

The leftmost vertical bar that houses all of the links to various collections grouped under a group name?

icy cedar
#

Thanks for moving it @prisma pilot . Yeah, I meant the nav component.

prisma pilot
icy cedar
#

Thanks! That theme is 🔥 btw. I see you have the naviconMap that does the icons for you, that's smart. I might end up using the same solution, idk why I thought it'll make more sense to update the icon in the collection config.

prisma pilot
#

My pleasure, yeah have some fun with it!