Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Changing WSS Site Title Programmatically

  Asked By: Travon    Date: Apr 12    Category: Sharepoint    Views: 1458

Is there a way to do this? I've got a site backup via smigrate, that
I'm using to restore all of the content I need for the new site.

So my steps are similar to this:

# just in case one exists, delete it
stsadm -o deleteweb -url http://portal/sites/blah/site/
# create the web
stsadm -o createweb -title SITE -url http://portal/sites/blah/site/
# load up the backup information
smigrate -r -w http://portal/sites/blah/site/ -f D:\site.fwp

When I do this, the title of the site is set to whatever the title of
site.fwp is, and unfortunately, that's not what I want.

I've looked through all the webservices, and stsadm, and can't find
anything that should do that. I thought -o renameweb would, but it
seems that's just for changing the URL to something new...

I even thought about a simple HTTP script, in vbs, but due to the fact
that MS likes to have everything stored in hidden variables, it makes
that too much of a pain for me...

Any help would be greatly appreciated.



2 Answers Found

Answer #1    Answered By: Gaurav Nemane     Answered On: Apr 12

I don't know of a way to do this programmatically, but couldn't you just
rename your FWP file to the name you want the site  to have? Add a step
like: ren site.fwp "cool new site name.fwp"

Answer #2    Answered By: Marjorie Humphrey     Answered On: Apr 12

Unfortunately, the name of the created site  isn't dependent on the
name of the .fwp, it's based on the name inside the manifest.xml. I
could, in theory, change that through some scripting magic, but I was
hoping there was a way to *not* have to go down that route...

Didn't find what you were looking for? Find more on Changing WSS Site Title Programmatically Or get search suggestion and latest updates.