Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Setting up the Database
  2. Defining Audience Members
  3. Separating Announcements based on Topic
  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>...


...

Separating Announcements based on Topic

There may be occasions where you may wish to create multiple instances of the announcements portlet that only contain specific topics. This is very simple to do using the Whitelist and Blacklist feature in the portlet configuration.

WhiteList Feature

This feature is where you would specify the topic(s) you want to display in a given announcements portlet.

Case Scenario:If I want an announcements portlet to display announcements with only the topic, "IT System Outages", that I had created, I would do the following:

  • Register a new Announcements portlet and fill out the forms. 
  • When you get to the end you will be presented with a "Save" or "Save and Configuration" button. Click on the "Save and Configuration" button.
  • Select "Whitelist" from the drop-down menu and type the topic(s) in the textarea field you want to appear. (topics should be on a separate line.)

    Image Added

  • The resulting portlet looks like this:


         Image Added

BlackList Feature

This feature is where you would exclude a topic(s) but display the remaining topic options.

Case Scenario: If I want an announcements portlet to display all announcements except for my "All Campus" topic I created, I would do the following:

  • Register a new Announcements portlet and fill out the forms. 
  • When you get to the end you will be presented with a "Save" or "Save and Configuration" button. Click on the "Save and Configuration" button.
  • Select "Blacklist" from the drop-down menu and type the topic(s) in the textarea field you want to EXCLUDE. (topics should be on a separate line.)Image Added

 

 

 

  • The resulting portlet looks like this:

    Image Added

Anchor
wysiwyg
wysiwyg

Configuring the WYSIWYG editor

...