Shared content allows you to replicate pages. You can share listing pages or an individual page. A specific page can be shared with different site sections or subsites. For example, you may have an event on your subsite that you want to display on your public site.
Shared pages use a designated page as the source page. Any changes to the original shared page will be mirrored on duplicates you created. This article discusses creating replica pages; if you want instructions on sharing content snippets, check out Using the Content Selector.
There are two ways to share pages:
- Sharing content types through Site Management or,
- Sharing single pages on the same site or across multiple sites
The video below will detail both:
Share All Pages of a Content Type Across Sites
This task is for users with the OC Site Manager or OC System Administrator roles.
Through the Site Management settings, you can share listings of a content type from one site to another. For example, you have OC Event pages on a Theater subsite and want to list them on that subsite and your main site. Once you share the content type, all events created or edited from the Theater site will also appear on your main site. Any changes to the theater event pages are also mirrored on your main site.
To achieve this scenario, you can share the content type by following these steps:
- Firstly, ensure the module you wish to share is available on both sites. You will need to install the module if it is not available. To share OC Event pages, ensure the Events module is installed on the public site and the theater subsite.
- Go to the site settings for the site you want to display the listings on. For this example, it is the public site. From the main menu of your public site, go to More > Site Management > Public site > Settings.
- Click on the content type icon that you would like to share. For this example, click on Event.
Note: This option is only available with specific modules outlined below. - Expand the Show events from other sites accordion menu.
To show events from other sites on the public site's events listing page, check the subsite under On Events listing. For this example, you would check "Theatre." - To show events on the homepage listing, check the site under On Homepage Events listing.
- Save your changes.
- Check your Events listing to ensure that subsite events are shared to the public site.
The shared events will only display on the listing page for the content type being shared, not in any navigation menus, and the original page itself will still be hosted in the subsite. When you click on the event, you'll be taken to the event on the subsite and will have left the public site. This is an important consideration to remember if you want your community to stay on the site as they browse. If keeping site visitors on the same site is a requirement, use the Share Page option to share pages individually.
Please note that because the page is hosted on the subsite, the theme of the public site will not be reflected.
Additionally, sharing entire content types is only possible with the following modules:
- A-Z Directory
- Community Engagement - premium
- Departments
- Documents
- Events
- Initiatives
- Jobs
- Lost Animals
- News Articles
- Parks
- Public Notices
- Venues
- Projects
Share Single Pages in the Same Site or Across Multiple Sites
Sometimes, a page must be displayed in different areas of a site or across different sites. For example, you'd like to present an OC Venue page on your public site and your theater subsite. You'd also like to reduce the points of editing and avoid updating two pages with the same content. Sharing a single page makes this possible. The process involves creating and sharing a source page following these steps:
- Right-click on the page that you want to share.
- Select Share Page. If Unshare Page is displayed in this menu, your page is already being shared.
- Once your source page has been shared, right-click in the site tree where you want to recreate it. If you are sharing pages across different sites, select the other site from the Site Selection drop-down menu to change to its admin area.
Note: To share pages across sites, you must be a user for both sites. Additionally, files or images attached to the page will be shared if those files were uploaded to the Shared files folder of your Files Library. - Select Create, and the regular content type selection menu will display.
- Instead of selecting a content type, start typing the Page name, which determines the URL path of the original shared page, into the search bar. The path of the original shared page will appear. In the example below, the Central Park Pavilion venue page has been shared, so it is available in the content type selection menu.
- Click on the page you wish to share to create a duplicate version of in the new location. The page name and template will be editable, but as the rest of the content is sourced from the original page, you will be unable to edit it on this new page.
- Publish your page, and the page will appear in this new position and will update simultaneously when updates are made to the original page.
This option allows you to have share pages and has the following advantages:
- You can share pages across sites. When you click on the page in either site, you'll stay on the site.
- It allows a page to appear in multiple sections of the same site.
- It appears in the navigations menus of these sections.
- Any changes made to the original shared page will also appear on the duplicate.
If you want to prevent both pages from appearing in search results, go to the Settings tab of the duplicate page and check the Hide this page from search box. In the same way, you can also hide the page from navigation or external search engines. This only applies to sharing pages on one site.
Please note that an OC Landing Page cannot be shared, as any child page links and content will not be maintained on a different site. We recommend using an OC Redirect Page to link to the original landing page instead.