Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
  1. Setting up the Database
  2. Defining Audience Members
  3. Separating Announcements based on Topic (Whitelist/Blacklist) 
  4. Configuring the WYSIWYG Editor
  5. Changing Announcement List Sort Order

...

  • Edit the pom.xml to define the jdbc driver to be used.

     

    Code Block
    <!-- The Default JDBC Driver used by the portlet -->
    <jdbc.groupId>org.hsqldb</jdbc.groupId>
    <jdbc.artifactId>hsqldb</jdbc.artifactId>
    <jdbc.version>2.2.9</jdbc.version>
     

...

  • Open src/main/webapp/WEB-INF/portlet.xml
  • Around line #210 you will see role definitions. Here you can add your additional audience roles you want as options.

    Code Block
    languagehtml/xml
    <!-- Do not change the role-name of this role, doing so may lock you out of your topics -->
    <security-role-ref>
         <role-name>Portal_Administrators</role-name>
         <role-link>Portal Administrators</role-link>
    </security-role-ref>
    
    <security-role-ref>
         <role-name>Everyone</role-name>
         <role-link>Everyone</role-link>
    </security-role-ref>
    
    <security-role-ref>
        <role-name>All_Logged_In_Users</role-name>
        <role-link>Authenticated Users</role-link>
    </security-role-ref>
    
    <security-role-ref>
        <role-name>Faculty</role-name>
        <role-link>Faculty</role-link>
    </security-role-ref>
    
    <security-role-ref>
        <role-name>Staff</role-name>
        <role-link>Staff</role-link>
    </security-role-ref>
    
    <security-role-ref>
        <role-name>Students</role-name>
        <role-link>Students</role-link>
    </security-role-ref>...



The changes above require a rebuild of the portlet and redeployment to the uPortal project

  • Rebuild Announcements portlet

    Code Block
    languagebash
    mvn clean package
  • Redeploy the portlet under the portal space and restart tomcat.

    Code Block
    languagebash
    ant deployPortletApp -DportletApp=/path/to/Announcements.war

Anchor
SeparateTopics
SeparateTopics

...

The tinyMCE.init call in the JavaScript at the bottom of the page contains properties starting with theme_advanced_button that control the displayed editor buttons. Each property corresponds to a button row, and each row is numbered appropriately. Buttons may be added to each row and ordered as desired. The available buttons are listed in the TinyMCE documentation, and the name "separator" may be used to separate buttons.

...