Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The left sidebar can be edited only by a Wiki Space Administrator
  • Visit "Space Tools → Look and Feel"
  • Click on "Sidebar, header and footer"
  • In the "Sidebar" field, you want to place the following Wiki Markup (which will cause the _DocLeftSidebar wiki page to appear as the sidebar):


    Code Block
    {include:DSDOC:_DocLeftSidebar}
    {livesearch:spaceKey=DSDOC7x|placeholder=Search documentation|additional=page excerpt}


  • Click "Save"
  • Now, we'll likely want to ensure this version of DSpace is listed in the Sidebar. To do that, just visit the _DocLeftSidebar page, edit it, and add a line similar to the following:

    • Create a new "div" macro (creates a new HTML <div> tag for us)

    • Set Class as "DSDOC7x" (for DSDOC7x space)

    • Set Style as "padding-left: 10px" (to align with all others in the list

    • As the text (inside the "div"): "DSpace 7.x (Unreleased)" (and link it to the DSDOC7x Homepage)

    • NOTE: Obviously you can copy from another "div" macro if these settings change.
  • Finally, let's tweak the stylesheet of the Space, so that its listing in the sidebar appears bolded.
    • Go back to the "Space Tools → Look and Feel"
    • Click on "Stylesheet"
    • Click "Edit" and add a style similar to the following (notice that this "div" style matches the "div" macro defined above):

      Code Block
      /** Bold sidebar link to this Space **/
      div.DSDOC7x
      {
         font-weight:bold;
      }
      
      /** OR by child number **/
      /** Bold sidebar link to this Space **/
      .custom-sidebar-content > .content > ul > li:nth-child(3)
      {
         font-weight:bold;
      }


    • Click Save

The final result is that, when you go back to the Space, you'll see that the contents of the _DocLeftSidebar wiki page now appear in the left sidebar. You'll also notice that this Space's name should appear bolded, and when you click on different versions of the Documentation those Space names should appear bolded instead. This allows the sidebar to always be identical across all Documentation Spaces, which makes it easier to manage across all our documentation.

...