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".
- Create a folder called "_includes" in the root of the site
- Inside "_includes", create a new blank file with the extension "pcf"
- 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> </p>
</ouc:div></document>
- Go to Setup -> Sites
- Find the site and click on "Site Access"
- Scroll to the bottom and click the green "Add" button under "Directory Variables"
- Click on "Create New Variable" and type "leftColInclude" and click "Create New Variable"
- In the value field to the right, type "/_includes/*NAME-OF-INCLUDE-FILE*.pcf"
- Click save
- All files will need to be republished