Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Below are the instructions to add the tool bar:

Step 1: Export your fragment-layout

  • Login as the Portal Administrator and go to the Portal Administration Tools portlet
  • Click on the "Import, Export, and Delete Entities" link
  • Click on the "Export" button to export the fragment-layout to an xml file
  • From the drop-down menu, select "Fragment Layout" and write the id of your fragment in the input field and click on the "Export" button. (see image below)

Step 2: Edit the

...

fragment layout

  • Open your exported file for editing (ex., faculty-lo.fragment-layout.xml)
  • Add the following code near the top of your file, HOWEVER, you will need to change the node id (ID="n3") to a number that does not already exist in your database (ex, ID="n30").

    Code Block
    languagenone
    <folder ID="s2" hidden="true" immutable="true" name="Header folder" type="header" unremovable="true">
          <channel fname="fragment-admin-exit" unremovable="false" hidden="false" immutable="false" ID="n3" />
     </folder>

     

     

  • As a result your file should look like this....

    Code Block
    <?xml version="1.0" encoding="UTF-8"?>
    <layout xmlns:dlm="http://www.uportal.org/layout/dlm" script="classpath://org/jasig/portal/io/import-layout_v3-2.crn" username="faculty-lo">
      <folder ID="s1" hidden="false" immutable="false" name="Root folder" type="root" unremovable="true">
     <folder ID="s2" hidden="true" immutable="true" name="Header folder" type="header" unremovable="true">
          <channel fname="fragment-admin-exit" unremovable="false" hidden="false" immutable="false" ID="n30"/>
        </folder>
    <folder ID="s3" hidden="false" immutable="false" name="Footer folder" type="footer" unremovable="false"/>
    ...
    </folder>
      </folder>
    </layout>

Step 3: Import the fragment-layout file

Import your revised fragment using the data-import tool 

Code Block
languagebash
ant data-import -Dfile=/path/to/your/faculty-lo.fragment-layout.xml

Step 4: Rebuild uPortal

Code Block
languagebash
ant clean deploy-earwar

Step 5: Restart Tomcat

  • Restart your tomcat server

...