change vsite path?

Events happening in the community are now at Drupal community events on www.drupal.org.
spiritcapsule's picture

Is it possible to change the path of a vsite and all items under that vsite?

Example -- change:
scholar.school.edu/joe-smith
To:
scholar.school.edu/john-doe

What's the best way to do that? Is it possible to do this via the site interface in one step or is editing each url alias individually the only option? Is that not recommended?

If it can't be done en masse via the interface, I'm thinking maybe just run an update query directly on the url_alias table?

As user/1, I can't go to admin/content/node and just click edit for a Scholar Site node. I just get redirected back to the content list. Is that an intentional feature? Maybe to prevent someone from doing just this?

Comments

If you want to edit a site

MPetrovic's picture

If you want to edit a site node, you have to do it from within that site. For instance, scholar.school.edu/john-doe/node/{site-nid}/edit

Editing in bulk will require more than just changing the url alias field. You'll also have to change the purl table and the vsite path field. That may not be everything. I would recommend doing it through the node form.

doesn't fix the items on the site

spiritcapsule's picture

ok, i tried that.
it effectively changed the purl record.
but each of the items in that vsite still has the old path in addition to the new one.

scholar.school.edu/john-doe/joe-smith/publications/techreport

Hopefully you've already

mohhess's picture

Hopefully you've already figured this out, but delete all of your node aliases and then do a bulk update. After clearing caches a few times you should see the changes.

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: