documentation Plone5
stable
  • Introduction
  • Quickstart
  • Working with Content
  • Adapting & Extending Plone
    • Basic Changes (Look and Feel)
    • Theming Plone
    • Site Setup
      • Introduction and overview
      • Date and Time
      • Language settings
      • Mail Configuration
      • Navigation settings
      • Site Configuration
      • Add-ons
      • Search settings
      • Discussion
      • Theming
      • Social Media metadata
      • Syndication settings
      • TinyMCE configuration
      • Templating in TinyMCE
      • Content Rules
      • Editing
      • Image handling
      • Markup
      • Content Settings
      • Dexterity Content Types
      • Managing Users and Groups
      • Enabling HTML embed codes
      • Security settings
      • Error log
      • Maintenance and packing
      • The Management Interface
      • Caching
      • Configuration Registry
      • Resource Registries
    • Installing Add-ons
    • Custom Content Types
  • Installing, Managing and Updating Plone
  • Developing for Plone
  • Appendices
  • About this documentation
  • License for Plone Documentation
  • Asking for help
documentation Plone5
  • Docs »
  • Adapting & Extending Plone »
  • Site Setup »
  • Navigation settings
  • Edit on GitHub

Navigation settingsΒΆ

*** Settings ***

Resource  plone/app/robotframework/server.robot
Resource  plone/app/robotframework/keywords.robot
Resource  Selenium2Screenshots/keywords.robot

Library  OperatingSystem

Suite Setup  Run keywords  Suite Setup  Test Setup
Suite Teardown  Run keywords  Test teardown  Suite Teardown

*** Variables ***

${FIXTURE}  plone.app.robotframework.PLONE_ROBOT_TESTING
@{DIMENSIONS}  1024  768
@{APPLY_PROFILES}  plone.app.contenttypes:plone-content


*** Keywords ***

Suite Setup
    Run keyword if  not sys.argv[0].startswith('bin/robot')
    ...             Setup Plone site  ${FIXTURE}
    Run keyword if  sys.argv[0].startswith('bin/robot')
    ...             Open test browser
    Run keyword and ignore error  Set window size  @{DIMENSIONS}

Test Setup
    Import library  Remote  ${PLONE_URL}/RobotRemote

    Run keyword if  sys.argv[0].startswith('bin/robot')
    ...             Remote ZODB SetUp  ${FIXTURE}

    ${language} =  Get environment variable  LANGUAGE  'en'
    Set default language  ${language}

    Enable autologin as  Manager
    ${user_id} =  Translate  user_id
    ...  default=jane-doe
    ${user_fullname} =  Translate  user_fullname
    ...  default=Jane Doe
    Create user  ${user_id}  Member  fullname=${user_fullname}
    Set autologin username  ${user_id}

Test Teardown
    Run keyword if  sys.argv[0].startswith('bin/robot')
    ...             Remote ZODB TearDown  ${FIXTURE}

Suite Teardown
    Run keyword if  not sys.argv[0].startswith('bin/robot')
    ...             Teardown Plone Site
    Run keyword if  sys.argv[0].startswith('bin/robot')
    ...             Close all browsers
*** Test Cases ***

Show Navigation setup screen
    Go to  ${PLONE_URL}/@@navigation-controlpanel
    Capture and crop page screenshot
    ...  ${CURDIR}/../../_robot/navigation-setup.png
    ...  css=#content
Navigation setup configuration

Plone automatically generates navigation tabs from items you put in the root, or top level, of your site. The first two settings allow you to control this:

  • do you want them to be generated?
  • and if so, should it only be done for Folders or also other items like Pages?

The rest of the options control what items should be visible in the navigation. The defaults are usually a good choice, although many site administrators turn off “Image”. You can always re-visit this section later.

Next Previous

© Copyright 2016. Revision 689fc1f1.

Built with Sphinx using a theme provided by Read the Docs.