Dynamic source path in template?

时间:2019-01-15 18:14:41

标签: templates

Here's the scenario. We are setting up subsites that will serve certain customers. One of the item types we've specified for them to use has an image field that will hold bio photos for their department. The idea is x customer will get a content folder off the root as well as a folder in the media library. What I'm trying to accomplish is to have this item, wherever it gets inserted within a given customer's content area, will, when going to browse for images for this bio image, it will go to their corresponding folder in the media library. I'm assuming this has to be done via some custom coding, but is it even possible?

IE:

content\Subsites\Department X\Bio Y

has a field Bio Image that when clicking browse opens to:

\Media Library\Subsites\Department X\Bio Images\

0 个答案:

没有答案