Administering > Take a test drive of the site > < Previous | Next > WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Step 6: Hiding pages on the site

Step 6 of this tutorial demonstrates how to hide pages on the site using visibility rules. The goal of this tutorial is to hide the Career and Life page that you created in Step 5 so that it does not display in the site or in the main menu on Fridays through Mondays.

Visibility rules control whether a page displays in the navigation based on specific conditions that you define, such as application values, user attributes, and other context information. Visibility rules are assigned to pages in Page Properties and are triggered automatically by the site as needed. For example, you could define your rule to hide a page for users in a certain location or at a specific time of day.

In this tutorial, you will create a visibility rule to hide the Career and Life page every Friday through Monday.

Tips and notes:

 

To hide the Career and Life page created in Step 5 of this tutorial:

Fastpath Fastpath: If you are already familiar with locating the Career and Life page in Manage Pages and accessing Page Properties from the previous tutorial, skip to step 5 to learn how to create and apply a visibility rule to this page.

  1. Click Administration from the main menu.

  2. Click Manage Pages directly from the navigation. Manage Pages presents you with the entire site hierarchy and lets you add, rearrange, and edit all of the pages in your site.

    You can also access Manage Pages by clicking Portal User Interface > Manage Pages Accessing Manage Pages

  3. Click Content Root. The content root contains all of the top level site areas. Viewing content root

  4. Navigate to your new page entitled Career and Life.

    You can locate your new page in Manage Pages by:

    • Entering a page number in the Jump to page field to aid you in locating your page.

    • Increasing the number of top level site areas displayed in the table in Manage Pages. From the portlet menu, select Edit Shared Settings or Configure as appropriate.

    • Paging through Manage Pages.

    Locating Career and Life page in Manage Pages

  5. Click Edit Page Properties Edit Page Properties.

    • Another way to hide a page on the site is to change the status of a page from Active to Inactive in Manage Pages. This method also affects whether a page displays in the navigation. The page will not display in the site until you click the Inactive link to mark the page as Active in Manage Pages.

    • When you deactivate a page rather than using visibility rules to hide a page, you loose the flexibility of defining the conditions in which you do want the page to display. In contrast, visibility rules are composed of easy-to-read logic statements that specify how to evaluate various conditions for hiding your page and what actions to take based on those conditions.

    Click Edit Page Properties from Manage Pages

  6. From Page Properties, expand Advanced options and select Create New Rule. This takes you to the Personalization Rule Picker.

    Once you create a visibility rule, you can also assign it to other pages, edit the rule, and deselect the rule.

  7. In the Personalization Rule Picker, type a name for your new rule. In this example, you can type Hiding pages as the title of this new rule.

    You can also provide a description for your new rule and change the folder of where the rule is located.

  8. Click on the Show attribute and select Hide from the drop-down menu.

  9. Now define the conditions for hiding the page. In this example, you will set an attribute to hide the Career and Life page every Friday through Monday. Click Attribute > Date > Weekday.

  10. Click on the condition is to display a menu of options. For this example, select the condition is between.

  11. Select the value of your attribute and click Submit. In this example, select Friday.

  12. Select the value of your next attribute and click Submit. In this example, select Monday. By setting this condition in your visibility rule, the Career and Life page will not display on the site Fridays through Mondays but will display Tuesdays through Thursdays.

    To extend this tutorial, click add Condition to create another condition for this visibility rule.

  13. Click Save to finish creating your visibility rule.

  14. Notice how your visibility rule is assigned to the Career and Life page in Page Properties and then click OK to apply this rule to your page.
You have successfully hidden your page on Fridays through Mondays. Note how you do not see the Career and Life page as an option in the main menu. In contrast on Tuesdays through Thursdays, the Career and Life page does display in the site and from the main menu.

Page hidden: Fridays-Mondays Page displays: Tuesdays-Thursdays

 

Tutorial checkpoint

During this segment of the tutorial, you have learned the following:

You also revisited concepts you have seen in previous Steps in this tutorial:





< Previous | Next >