-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Links Portlet
This information no longer applies. It was decided to return to the old style Quick Links portlet. The information is retained below just in case.
On the Plone 5 version of the EDRN portal, the Quick Links portlet is not a static HTML artifact nor a custom add-on. This document describes how it works and how to update it.
Portlets are side-bar sources of information, status, and additional data provided on a portal. They can also be used to quickly access items that may be deeply nested within a portal without the need for search or navigating through folder and page structures. The Quick Links portlet on the MCL and EDRN sites serve this latter purpose.
However, rather than rely on fixed links in a portlet written using static HTML or a custom add-on that provides such links, we take advantage of three of Plone's features to automate the rendering and linkage of the Quick Links portlet:
- Tags (also known as "keywords"). Tags are essentially one-word categorizations that can be applied to any object in a portal. These correspond to the Dublin Core "subject" metadata element. We tag items we want to appear in the Quick Links portlet with the "quicklinks" keywrod.
- Collections (once known as "smart folders"). Collections use search criteria to create the appearance of a folder of items that match the criteria. Collections are dynamic in that as portal content is added, updated, or removed, the matched items update as needed. We create a collection called "Quick Links" in the portal whose sole search criteria is "tag matches quicklinks" and whose sort order is "sortable_title".
- Collection Portlets. Collection portlets are portlets whose contents are an existing Collection object in the portal. For Quick Links, we add a Collection Portlet to the top-level of the portal whose header is "Quick Links", and whose target collection is the Collection object described in the previous bullet.
This makes it trivial to maintain the portlet: all you have to do is add or remove the "quicklinks" tag to and from items you wish to appear.
To add an object to the Quick Links portlet:
- Log in as a user with permissions to edit content on the site. Typically this is a user with the Site Manager role, but other roles may also have the edit permission.
- Navigate to the item you wish to add or search for it.
- Click "Edit" in the Plone toolbar.
- Click the "Categorization" tab.
- In the "tags" field, add the tag "quicklinks".
- Click "Save".
To remove an object from the Quick Links portlet:
- Log in as a user with permissions to edit content on the site. Typically this is a user with the Site Manager role, but other roles may also have the edit permission.
- Navigate to the item you wish to remove or search for it.
- Click "Edit" in the Plone toolbar.
- Click the "Categorization" tab.
- In the "tags" field, delete the tag "quicklinks".
- Click "Save".
Copyright © 2019–2021 California Institute of Technology.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.