backstage-plugin-announcements icon indicating copy to clipboard operation
backstage-plugin-announcements copied to clipboard

How to have different announcement sources within the same portal?

Open arnaldotema opened this issue 10 months ago • 0 comments

Hi there, is it possible to have two distinct frontend announcement areas within the same portal?

  • I tried to create announcements.ts and announcements-product.ts in backend/src/plugins and
  • Added distinct paths to App.tsx as:
<Route path="/announcements" element={<AnnouncementsPage />} />
<Route path="/product/announcements" element={<AnnouncementsPage />} />
  • And also added those two distinct routes to backend/src/index.ts apiRouter.use(...

I didn't check if the full link works, regardless, since AnnouncementsCard takes no context input, I suspect it will look for only one backend source, and therefore making impossible to have two different announcement card areas, pulling from different databases, within the same page.

arnaldotema avatar Apr 30 '24 18:04 arnaldotema