Friday, January 25, 2013

Allowing "-" in Tridion Publication Path

Today we had a requirement where the publication path need to include a "-" for all locales. For example, we will need the publication path of an English site to have "en-US" and not "en_US"

However, by default, Tridion CMS does not allow for this to work. When trying to add a "-" you will get the following error:



Here's the work around:
  • Open \Tridion\bin\cm_xml_usr.xsd
  • Modify the <xsd:simpleType name="FilePath"> element to include "\-" in the XSD Pattern.
  • You will now see the following:
  • Restart Tridion COM+
Now you should be able to add a "-" to the Publication Path!