api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Feature Request: Ability to show/hide widgets based on associated product published state

Open bendixon-zelis opened this issue 2 years ago • 6 comments

The homepage of our developer portal displays an array of cards advertising our various API products. Currently these cards are created manually in the Developer Portal editor. One problem we face is we cannot control the display of the card based on the published status of its associated product so we cannot release Dev Portal changes with cards until we are ready to publish the product and we cannot unpublish a product that has a card without deploying Dev Portal again.

We have considered introducing a custom widget display the cards based on the published state, but it would be nice if there was a built-in feature, similar to the access control by group feature, that would display or not display a widget based on the published state of a selected product or products.

bendixon-zelis avatar Feb 21 '24 20:02 bendixon-zelis

hello @bendixon-zelis , thanks for requesting this feature! In the meantime, there is also the default widget List of products (tiles) that may be helpful for your situation (similar to list of products, it will display only the published products).

malincrist avatar Feb 26 '24 10:02 malincrist

@malincrist, thank for the pointer. I was guessing we might not be able to use it because of the way we display our tiles depending on whether the user is logged in or not, but I thought I would give it a shot. Maybe I'm doing something wrong but I can't get it display any products as tiles. I tried adding it to the front page and the products page but it only displays "No products found" whereas the products list on the same page displays the products as expected. Included an image below showing the two widgets on the same page.

image

bendixon-zelis avatar Feb 28 '24 16:02 bendixon-zelis

@bendixon-zelis , that is weird.. do you have any errors in the console? if so, can you please share them here as well? Also, can you please make sure you used the widget List of Products (tiles) not another widget? (for example like API: Products (tiles) - which needs an API in order to display the associated products)

malincrist avatar Feb 28 '24 16:02 malincrist

@malincrist, thanks for the help. I had selected the wrong tiling widget. "List of Products (tiles)" displays the products as expected. Unfortunately, I can't swap our current tiles out for this widget because of the differences in UI and limitations in its configuration.

bendixon-zelis avatar Mar 04 '24 17:03 bendixon-zelis

Is this a managed portal or self hosted portal issue?

sthirthala avatar Mar 28 '24 22:03 sthirthala

For managed portal, please log support tickets in Azure help+support center

https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

sthirthala avatar Mar 28 '24 22:03 sthirthala