Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed! Less than 25 tickets left - get yours now!
I have a situation where I need different robots.txt files for different sites all in the same Umbraco install, currently I have done this by using textbox multiple data type and a URLRewritting rule but I would love to be able to use the editor from your package as it really helps our editors manage rules.
I can think of two potential approaches:
1. Extend your package to support different robots.txt files but currently you are directly edit a physical file so might be complicated as would need to make to serving of the file become virtual, dependant on url
2. Use your code to create a usercontrol wrapper data type that can be used in content
I'm thinking option 2, but would really appreciate your opinion?
Take a look at Sebastiaan's Cultiv DynamicRobots package. I think it provides the functionality that you require.
Otherwise, yes, feel free to take the source code and modifiy accordingly.
Sebastian's package is great if you have the same robots.txt for all sites but need to change the sitemap, but we actually have completely different contents of robots.txt per site, one site actually blocks everything and others are using the default Umbraco. I think I’m going to have a go at converting your editor to a data type. Will let you know how it goes. J
Hmmm... more I think about it, more I like the idea of a robots.txt data-type! :-)
Let me know how it goes. If you think it's worthwhile including it in the main package, then I'm happy to add you as a collab on the project, etc.
Cool, will keep you posted
I have a user control wrapper data type working well, I can email you a test package/source if your interested? If/when I have more time, I would like to create a proper Abstract Data Editor but for now this is great!
Thanks great news! Drop me an email (when you've got time - no rush), would love to take a look at it. Interested in including it with the rest of the package.
Ooh, this sounds interesting, could probably obsolete my whole package. I'll keep an eye on this topic for progress.,
Did anyone make a package? I need this as well now, have tried a few things I've found elsewher but no luck yet.