51社区

Clone Existing Pages

You don't always have to start from scratch when creating a new webpage. If you see another page in your own site that has a layout you want to use, you can simply clone that page and make the appropriate edits. You can only clone a page if it exists in the same multisite. If you need help with this, please attend an open lab. If you want a copy of a Drupal Webpage Template, please complete the .

Clone A Page

  1. Find the page you want to copy in the node listing and select the page title. 
Select Page Title
  1. At the bottom of the page, choose Clone. This creates a copy of the page with a new node number.
Choose Clone
  1. Update the Page Title.
Update the page title
  1. Make any needed updates to the page.
  2. Save and publish the cloned page.
Save the page
  1. The page is can now be added to the site where you want it to live. Go to that site.

Add Existing Content to a Site

If you want to put your cloned page into another subsite within your Drupal multisite, you can just add it. Remember this is the EXACT same page, so any changes made to the page in either subsite will affect the page in both sites. If you don't want the cloned page to be in the original site, you can remove it from the group.

  1. A cloned page must be published in the original site.
  2. Go into the site where you want to add the page.
  3. On the nodes listing page, select Add Existing Content. 
     
Add Existing Content Button
  1. Choose the content type. Must match the content type of the page you are adding.
Add Existing Content Label
Content type options
  1. Search for the name of the page. (If the page name does not appear, then it could be that it is not in the same multisite or it is not published.) Select it. Save.
Search for the page name
  1. Change the Page Location to nest the page in the correct URL path.
Change page location
  1. Edit the Permalink. In general this should match the page name and be informative to help with search engine optimization. 
Edit Permalink
  1. Edit the rest of the page and Save.

Remove a Page from Group

If a page is in a group and it doesn't need to be, you can remove it from that group. This is often done when creating a clone of a page for a different subsite. Removing a page from a group does not delete the node. It only removes it from the node listing in that group. Remember: a page can be visible to more than one group in Drupal. If you delete a page from a group, it is deleted anywhere the page is used.

  1. On the nodes listing page, choose Remove from Group.
Remove from Group
  1. The confirmation page for removing a node from the group is the same as actually deleting the node. You do want to choose Delete. Just make sure that you actually selected Remove from Group on the previous screen. If you delete a node, it will be deleted from all sites that it is related to.
Remove from group confirmation