We're using SDL Tridion 2011 SP1 HR1, DD4T 1.25.0.0 (.Net website with IIS)
We wanted to load a (navigation) XML file from the filestore if it existed (as a debug override) and get it from the default storage (broker) database by default so we looked to change the initial setting in the cd_storage_config.xml which was...
<ItemTypes defaultStorageId="defaultdb" cached="false">
<Item typeMapping="Page" cached="false" storageId="defaultdb"/>
<Item typeMapping="Binary" cached="false" storageId="defaultdb"/>
<Publication Id="26" defaultStorageId="defaultdb" cached="false">
<Item typeMapping="Binary" storageId="defaultdb" cached="true"/>
<Item typeMapping="Page" storageId="defaultdb" cached="true"/>
<Item typeMapping="Page" itemExtension=".xml" cached="true" storageId="defaultFile"/>
<Item typeMapping="ComponentPresentation" itemExtension=".ascx" storageId="defaultDataFile"/>
</Publication>
</ItemTypes>
when we change the line specific to XML extensions to
<Item typeMapping="Page" itemExtension=".xml" cached="true" storageId="defaultdb"/>
I would expect this to simply default to the broker database - but it doesn't; I still receive a 404 as the file is not physically on the filestore?
Realising that we were mixing two things here :
- IIS checks for files, and serves those if those files exist on the file system;
- If they don't exist, then it processes the MVC code which in turn uses the cd_storage_config.xml values...
But alas, we just receive a 404 ... are we missing another config somewhere or have we misunderstood the processing here?
Thanks