are there known issues with using "manage content and structure" to move sites within a site collection in SP 2010? - powershell

I would like to be able to use "manage content and structure" to move sub-sites within a site collection (SharePoint 2010). For example I have a site that is right under my top level site and I would like to move it to be the child site of one of its' current peers.
There is some concern from admins that this creates a mess in the content DB, therefore all moves should be done using powershell export/import.
Can anyone tell me, technically, what happens when we use the move command in "content and structure" within a site collection and if there are known issues with it?

Moving sub sites around within a site collection is no problem. They had the exact same command for moving sites in SharePoint 2007, and it worked.
When you click the button, what likely happens is there is a stored procedure that executes and moves all the data to the new location.
Databases are designed to handle the all these changes. You don't create more of a "mess" in the content database by moving a site around compared to the daily "mess" of adding new documents to document libraries all over the place. In fact doing a PowerShell export, delete old site, import process is probably more messy because the old site isn't 'deleted' it's moved to the "Recycle Bin". And some of the GUID's associated with the site will be changed on the import.
Basically my recommendation is use the Move command to move sites around as that's the easiest thing to do, and don't worry about the database, because it just works.

Related

Copying contents between sections in the same course on moodle

I need to copy contents of a section to another section (or clone the existing section) in the same course on moodle. I've seen some documentation on how to copy contents from one course to another but I didn't find any resources on how to copy within the course. In the image attached, there is a section "Batch 2-2021". I want to make a new section "Batch 2-2022" and copy everything from "Batch 2-2021" into it. Is it possible? Any help would be appreciated.
There is a duplicate button for an activity
Go to a course
Turn editing on
Click the edit dropdown menu for an activity, select duplicate
Click and hold the move icon of the duplicate, then drag and drop on the new section
https://docs.moodle.org/400/en/Reusing_activities
In core Moodle, you can only duplicate activities or courses, not sections. However, this functionality is available in the Mass Actions block: https://moodle.org/plugins/block_massaction
Install the block on your site and add it to the course. There are options to select all of the activities in a section and duplicate them into another section, along with many other options to apply the standard actions to multiple activities at once.
If you cannot use the Mass Actions block for some reason (on hosted Moodle site, for instance), the fastest way in core Moodle to copy a section would probably be to use a course backup. When you create the backup, you can select only the a particular section of activities. You can restore the backup into the same course, merging the data, which will create duplicates of the activities. Unfortunately, they can only be duplicated into the same section, so you'll have to manually move them to the new section. Depending on how many activities you're copying, this may not be fast than just individually duplicating and moving the activities, so the Mass Actions block is still the best option.

how to find what looks at a content Database in SharePoint 2010

There is plenty of documentation out there for looking up what content DB a site collection uses in SharePoint. However, I'm looking for the reverse. I have a specific DB, and I need to know where (what URL's) it's content is referenced or displayed.
We have a DB that has been partially corrupted and in need of restoring. It appears the only clean backup we have of it is relatively old. However, at first glance the library we know to be using it is lightly used. There has been no new content added to it since our backup was taken.
I am looking for a way to confirm that restoring from this backup wont unknowingly overwrite some critical data somewhere else.
In doing more digging, I did find another SO post that was able to get me the information I needed.
How to see all site collections in a specific content DB
-ContentDatabase contentdbname | select url, #{label="Size";Expression={$_.usage.storage}}
In navigating to the returned URL, I found recently added data. So that now rules out the restore.

Editing Word Documents from Web Server

I have looked for a solution to this but all I have found are products that are close but not what I need.
We have a program that creates a word document on the fly based on data from our database, and stores it on our server, then the user can download this file to print,email,file away.
I need something that will allow the user to open the existing document from the server, edit it, and save it back to the server.
I need this to be able to work on all browser, so activex isn't a full solution.
This link is a proof of concept of using CKEditor to do what you describe.
The focus is on ensuring that the "long tail" of possible docx content is preserved across the editing process.
For example, take a look at the Microsoft demo docx, which they use to compare their web apps with Google Docs, at
google-documents-vs-word-web-app

Sitecore copied item displaying wrong content

I'm new to sitecore have been tasked with creating some ppc landing pages for a client who's developer has moved on.
Their previous developer had created several of these pages in the past and the content is very similar so I have copied one of the previous pages and changed the content.
The problem is that the copy is still referencing the content of the original page, i know this as if i change the content of the original the copy also changes too.
The pages sub items are a mix of rich text fields and custom sublayouts.
Have I done something wrong or is this a bug? Can anyone suggest a fix?
Id imagine something like the reference to the subitems in the database has not changed from original.
How did you copy the previous page? In Sitecore you should be able to use either the Copy or Duplicate command, and be able to change the copied item without the original being changed (our content editors have a habit of doing this as well).
My guess would be that the sublayouts are pointing at a specific item, rather than the Context item, but that would be hard to say without code or ascx snippets.

Office integration (Word) - intercepting save

I am planning to implement a small in-house document management system. It must have a web GUI for managing a remote folder structure stored in a database. In these folders are word documents stored (physically as blob in a database). Whenever a user clicks on a document link, a word binary is downloaded via browser and (hopefully) opened in Word on the user's PC.
This is the easy part ;)
Now the user hits "Save" or Ctrl-S. I want to have a functionality programmed inside Word that calls a custom function (maybe in a .NET DLL) that uploads the saved file back to the server (HTTP). The hard part seems to me:
How to intercept the Save process to call the extension functionality
How to deploy this to multiple users
Mike's link to the question I answered should do it for intercepting the file save. The specific button idMso for File->Save is "FileSave"
To deploy it to several users machine you can either
Create a setup project that will create an msi that you can run on all the users machines
if it's an intranet scenario, you can keep the assemblies on a network location and just add the neceassary registry settings to all the users machines. This article should describe the settings that you need to include. You would just need to change the path setting to point to the network location.
AFAIK, this is what Alfresco is doing with its Microsoft Office Add-ins (never tested myself though). As Alfresco is open-source, it must be possible to look at what they are doing. Or just ask your questions on Alfresco's forums.
You can try to override "save" from the ribbon or build your own ribbon tab with the behavior you want. It may be trickier overriding "Ctrl-S".
Overriding the ribbon: StackOverflow Question
Video on altering a standard ribbon button: Office Developer Center