Curating Content
As the number of content items on your server grows, it naturally becomes more difficult to direct viewers to the subset of content that they need to see at any given time. This chapter contains strategies for creating and distributing curated views of content hosted on Posit Connect.
A curated view can be:
- A summary or reference page to explain the parts of a complex project.
- A content hub or knowledge repository for work belonging to a specific team or objective.
- A branded entrypoint for content relevant to a stakeholder group.
A curated view is ordinary content that you publish to Connect, so you can build it however you like. It can use the Connect Server API to list content and present it in whatever way suits your viewers, such as by project, by team, or by audience, rather than as the single list in the Connect dashboard.
The Connect Gallery includes two examples that you can add to your server as is or use as a starting point for your own:
- Custom Landing Page: a Shiny app that lists content with each viewer’s own permissions.
- Quarto: Content Hub: a static Quarto document that lists content with the publisher’s permissions.
Both items use the connectapi R package to query the Connect Server API for content, and bslib to display it. Each item links to the content it lists. To build your own view from either one, start from its source code in the posit-dev/connect-extensions GitHub repository.
Custom Landing Page
The Custom Landing Page organizes content by the server’s tags. Each tag gets a tab, and each tab groups its content into sections by the tags under it. Viewers can search within a tab. Organizing by tags is one way to arrange content differently from the Connect dashboard. Change the app to group, filter, or present content in a way that fits your organization.
The app lists content through a Connect API integration, so each viewer sees only the content that they can access. Because no viewer sees the titles of content they cannot open, you can share the page with everyone on the server.
The Custom Landing Page requires:
- An Enhanced or Advanced license tier, which includes viewer integrations.
- A Connect API integration, created by an administrator, which you then add to the app.
- Tags on your content.
See the extension’s README on GitHub for setup steps and options.
Quarto: Content Hub
The Quarto: Content Hub shows featured content as cards above a table of all content. Viewers can search, filter, and sort the table. Use the FEATURED_TAGS environment variable to choose which tagged content to feature.
The hub is a static document. Each time it renders, it lists the content that its publisher can see. Schedule the hub to render regularly to keep the list current.
Every viewer of the hub sees the same list, including the titles, descriptions, and owners of content they cannot open. Share the hub only with people who may see everything the publisher can see, or publish it from an account that can see only the content meant for the hub’s audience.
Access controls
After you publish a curated view, adjust its access settings to the desired level. These settings do not affect the access settings of the content items listed on the page.
If a viewer opens a content item that they do not have access to, Connect prompts them to request access. By default, Connect emails access requests to the content owner and collaborators.