Step 6: Hide pages on the site

 

+

Search Tips   |   Advanced Search

 

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 the 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.

Access control and visibility rules impact what appears on a page. When you account for both of these items, you are using attribute based administration to control when, how, and which users view the site content. This tutorial does not take access control into account.

In addition to applying visibility rules to a page, we can also use visibility rules to hide portlets on pages. We can extend this tutorial by hiding the World Clock we added to My Subpage in Step 3 of this tutorial.

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.

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

  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 us add, rearrange, and edit all of the pages in the site.

    We can also access Manage Pages by clicking Portal User Interface > Manage Pages

    Accessing Manage Pages

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

    Viewing content root

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

    We can locate the new page in Manage Pages by:

    • Entering a page number in the Jump to page field to aid us in locating the 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.

    • 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 the page and what actions to take based on those conditions.

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

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

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

    We can also provide a description for the 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, we 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 the attribute and click Submit. In this example, select Friday.

  12. Select the value of the next attribute and click Submit. In this example, select Monday. By setting this condition in the 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 the visibility rule.

  14. Notice how the visibility rule is assigned to the Career and Life page in Page Properties and then click OK to apply this rule to the page.

You have successfully hidden the 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


Next >