Welcome to the OpenCities help centre. Search for what you're after, or browse the categories.
Can't find what you're looking for? Submit a support ticket and we'll be in touch.

Follow

Using the Content Selector

avatar of Kira Hartley

Kira Hartley

Last updated

Occasionally, you may have content that must be present on many pages, such as contact details for a department's child pages or specific social media links. When you share a page, you can take content from individual fields and share it on another page using the Content Selector tool in the WYSIWYG Editor. This removes an editorial step and allows you to bulk-update the information if needed.

For example, a city or council may have many OC General child pages under an OC Department page. You could manually enter the department's contact details on every child page or create a shared source page with those details and insert it into a side panel on each child page. If those details changed, you would only have to update the source page, and it would automatically update any pages sharing that content.

Here's how it works, following the example above:

  1. In your site tree, create a new page and enter the content you want to share. Make an OC General page in this case and put the department's contact details into the WYSIWYG Editor.
    shared source page
  2. Go to the Settings tab and hide the page from search, navigation, and external search.
  3. Publish the page when you're ready, then right-click on it in the site tree and select Share Page. This is your source page.
  4. Go to the page where you want to replicate this content and select Update if it's been published.
  5. Open the WYSIWYG Editor of the area you want to input the content. In this scenario, we're using the side panel of an OC General page.
    edit side panels
  6. Select the ContentSelector tool from the WYSIWYG Toolbar.
    content selector icon
  7. Search for the Page name of your source page or select it from the list. If your source page is on a different site, choose that site from the Group dropdown menu and select Search; the list of pages will change to match shared pages from that site.
  8. Use the Content area dropdown menu to select the field you want to share from that page. OC Body Content represents the WYSIWYG Editor.
  9. You can use the Content Template dropdown menu to choose how you want the content to display. For OC Body Content, select default.
    content selector menu
  10. Select Insert, and your shared content will appear as a green widget in the text area. Save Content and Close to exit the WYSIWYG Editor.
  11. Save your page and Preview it to ensure the content looks as it should. Publish when you're ready.
  12. Repeat steps 4-11 for each page on which you want to replicate the content.

shared content on a general page

Tips and troubleshooting:

  • This is a legacy feature and will not be updated in future releases. However, it is supported for the use case outlined in this article.
  • We recommend creating all source pages in a folder to keep them centralized and quickly found. Because you need to hide them from search and navigation, you don't need to create them near the pages on which they're shared.
  • We also recommend that you document which content is shared and where. Documenting might take the form of a spreadsheet listing the shared pages, all pages sharing content from the source page, and which field they're sharing. This will make it easier to keep track of your content and assist any new staff in finding where content is coming from.
  • If there is no documentation, you can find where content is sourced from by looking at the green widget box in a page's text area. The widget will list the Page name and the field of the shared content; you can use the Page name to search for your source page. In the example below, the Page name is Building dept contacts, and the field is OC Body Content, which refers to the WYSIWYG Editor.
    content selector widget in text area
  • Please note that you can only share field content as a whole. This means that you cannot share specific parts of the WYSIWYG Editor (or any other field), only the entirety of the content at once.
  • Remember, it's best to use this tool for simple information such as contact details or social media links. Using this tool to replicate large amounts of text or images can be confusing, and, in terms of SEO, it's best not to repeat the same information all over your site. If you need to reproduce large pieces of text or whole pages across different areas or sites, you can check out our article on using shared content to replicate pages.
Was this article helpful?
0 out of 1 found this helpful