JeffDarchuk / SCTokenManager

Token Manager for Sitecore
MIT License
11 stars 6 forks source link

IdTokenData root set dynamically on ViewAutoTokens #29

Open chadrickman opened 6 years ago

chadrickman commented 6 years ago

I'm wondering if this is possible, we have a Sitecore instance that hosts multiple sites. Each one has its own media library folder, permissions restrict their ability to view/see the different sites. We have a series of image tokens that we use on the different sites, but would like the ability to set the root path for IdTokenData dynamically, so when the user clicks to insert a photo it jumps to the appropriate area of the media library for their site. Something like this (Media library -> Site# -> Article Images). This would be in favor of currently setting a default path to the Media Library root.

I'm curious if you've ran into this and if you have any suggestions. Thanks!

JeffDarchuk commented 6 years ago

Hey Chad I'm currently on vacation and away from a computer but I believe if you look at the autotokendemo.cs in the demo project you can see an example of how you can dynamically pass a root in. I'll be able to help more in about a week.