Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
From time to time, with any CMS we come across the need to mass update a set of documents in some way - something needs changing that we hadn't planned for.
For example a mass replace of the values in a specific property on a number of pages.
I have looked at the SQL tables in Umbraco and could probably do it via Transact-SQL but I know this wouldn't update the XML cache in server memory, so would presumably need to restart the application which is not ideal.
Can it be done from Razor code on a page, or some C# code in App_code?
A few idea:
For all of the above you'll then need to use the ContentService, which is a back office API, to call, edit and save your changes.
Don't use Razor though. That is for use in the views and for the purpose of rendering HTML.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted