Cosmos preview button can't display when change to Cosmos 2

Hi Pega player~

I have an issue about cosmos preview button when upgrade from cosmos 01.01 to 02.01. when I change it . I found preview button’s word can’t displayed in browser. About detail please look my attachments.

Could you tell me why, thank you very much ~!!! very much !!!

@chunliangl try to reproduce the issue by adding the UserPortal web channel in your access group - make sure that you have not overriden the UserPortal portal, section and harness rules.

The preview button is loaded as part of the custom HTML fragment called UserHeaderInc. This fragment calls pzLocaleDataForCosmos -

if the ‘preview’ button is not rendered, it is likely that you are not using the UserHeader section in your portal

@RichardMarsot

Thank you very much. It is very useful. I have checked it. I have known the logic for preview button from your reply.

At last the reason is I overrided the Navigation[PortalNavigation].

I save as the Navigation for cosmos 2 and customize it again . The issue is resovled.

Thank you very much.

@RichardMarsot , similar situation, migrated application from Pega 7 to 8.4. Updated Built-on application from UI kit to Theme-Cosmos. Now Link for opening WO not showing PREVIEW button while hovering on LINK?

@AshokVenkatesan likely you have some overrides in your built-on app that is conflicting with the Cosmos theme ruleset.

the issue reported in this post was NOT that button was not showing up but that the word ‘Preview’ was not rendered inside the button (see 1st screenshot - button is a visible but missing label) - If you are facing the same issue, make sure that you are using the USerPortal from the Theme Cosmos ruleset and you have not overridden rules like PortalNavigation or UserHeader.