3.5 Customizing on-page displays
On-page menu : how to define which items are displayed
Available items
Name | Content |
| "Add metadata" button |
| "Import notes" button |
| "View item information" button Opens the item in the library search panel. |
| "Open in Zotero (local)" button Link to the item in Zotero (standalone app). |
| "Open in Zotero (web)" button Link to the item in Zotero (web library). |
| Links to each PDF attachment for the item |
| Scite.ai badge of citations (mentioning, supporting, contrasting) |
| Link to the item on ConnectedPapers |
| Link to the item on Semantic Scholar |
| Link to the item on Google Scholar |
| List of items which cite the current item, in Zotero library + elsewhere. |
In the code
Display triggers
You can choose which pages should display the on-page menu/contextual buttons, by defining a trigger function. The function should take as its only argument the title of the page, and return a Boolean (true | false
).
The title will be the full title of the Roam page - if the page is in citekey format (@citekey
), that will include the @
.
The trigger function can be as simple or as complex as needed : different rules could be written for DNPs vs. regular pages, for example, or the Roam Alpha API could be used to check the page's contents, run queries on the graph...
Last updated