SDL Tridion is by default only able to deploy to the locations you specify in the cd_storage_conf.xml
, so if you have something like this in there:
<Storage Type="filesystem"
Class="com.tridion.storage.filesystem.FSDAOFactory"
Id="defaultFile">
<Root Path="c:\inetpub\wwwroot" />
</Storage>
Then it will be impossible to send stuff to C:\config\
, you could consider adding a second location:
<Storage Type="filesystem"
Class="com.tridion.storage.filesystem.FSDAOFactory"
Id="configFile">
<Root Path="c:\config" />
</Storage>
But then you will run into an issue with your item type mapping, since you can only map a certain type once.
So if the configuration files are a specific type (a Page for example) which you don't use for anything else, then you can map them quite easy, like this:
<Item typeMapping="Page" cached="false" storageId="configFile"/>
But most likely, you will have a few Pages needing to go to the defaultFile
storage and your config files need to go to configFile
.
The only solution I can think for that is to build a storage extension, and identify if your item is a normal Page or a config file in the storage extension, and fix it like that.
update
I forgot about the itemExtension option we have, maybe it isn't that hard afterall. So lets take a storage config like this:
<Storage Type="filesystem"
Class="com.tridion.storage.filesystem.FSDAOFactory"
Id="defaultFile">
<Root Path="c:\inetpub\wwwroot" />
</Storage>
<Storage Type="filesystem"
Class="com.tridion.storage.filesystem.FSDAOFactory"
Id="configFile">
<Root Path="c:\config" />
</Storage>
...
<ItemTypes defaultStorageId="defaultFile" cached="false">
<Item typeMapping="Page" itemExtension=".cfg" storageId="configFile" cached="false"/>
...
Then your config files will use c:\config
as their root, and then you say, but what about the Structure Groups. Well, most simple solution, put all those config files in the root Structure Group. Optionally, map the Root Path to c:\
and place all your config pages in a Structure Group with the directory name config
.
Any other requirements, and you have to go the Storage Extension route and customize it any way you want. You could even do that in combination with the above, and extend the com.tridion.storage.filesystem.FSDAOFactory
for your configFile
storage.