Global Sidebar Include

These steps can be followed to add an include in any subfolder. Simply use the folder "Access" settings instead of "Site Access".

  1. Create a folder called "_includes" in the root of the site
  2. Inside "_includes", create a new blank file with the extension "pcf"
  3. Copy and paste the following code into the source of the new file:

    <?xml version="1.0" encoding="UTF-8"?>
    <?pcf-stylesheet site="www" path="/_resources/xsl/left-include.xsl" extension="inc"?>

    <!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd">

    <document xmlns:ouc="http://omniupdate.com/XSL/Variables">
    <ouc:div label="leftcolumninclude" group="Everyone" button-text="Include Content" break="break"><ouc:editor csspath="/_resources/ou/editor/maincontent.css"  cssmenu="/_resources/ou/editor/styles.txt" width="955" wysiwyg-class="maincontent"/><p>&nbsp;</p>
    </ouc:div>

    </document>

  4. Go to Setup -> Sites
  5. Find the site and click on "Site Access"
  6. Scroll to the bottom and click the green "Add" button under "Directory Variables"
  7. Click on "Create New Variable" and type "leftColInclude" and click "Create New Variable"
  8. In the value field to the right, type "/_includes/*NAME-OF-INCLUDE-FILE*.pcf"
  9. Click save
  10. All files will need to be republished
©