All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
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} |
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)
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;
} |
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.
...