This is a quick one, but man is it sexy. I’m loving the new configuration support in Sitecore 9. Let’s take a look at the new “set” command in the patch configuration.
Here’s how we could update two site values in the previous versions of Sitecore:
<site name="website" virtualFolder="/">
<patch:attribute name="virtualFolder">/sitecore modules/site</patch:attribute>
Is that impossible to figure out? Nah. Can it be easier? Yep! Here’s how to do the same thing in Sitecore 9.
<site name="website" virtualFolder="/" set:domainPath="/home" set:virtualFolder="/sitecore
Now THAT is simple!
This entry is part of my series "Nine on Nine" which is a "quick peek" at nine new things in Sitecore 9. I've been messing a bit with the Technical Preview, and there's lots of exciting stuff to share. Some of these might change a little in regards to General Availability, but hopefully not too much... These posts won't cover everything in depth, as I hope to do more detailed analysis in the coming months. Other Entries in Nine on Nine
- Connecting to Sitecore Rocks
- Controlling Configuration Load Order
- Dynamic Placeholders
- Server Role Configuration
- Sitecore Forms
- Switching Search Providers
- SIF and HTTPS Everywhere
- Using Set in Configuration Files
- Infrastructure Software changes