Forum Discussion
Any ideas how to edit Highlighted content card templates?
Insert this code as a modern script editor underneath the highlighted content to remove the modified section:
<style type="text/css">
.ms-DocumentCardTile .ms-DocumentCard:not(.ms-DocumentCard--compact) .ms-DocumentCardActivity {
Visibility:hidden !important;
}
</style>
- JanetSMay 17, 2023Copper Contributor
Ryan Gardner - there is no Modern Script Editor webpart? Where would I need to get that?
- Ryan GardnerMay 17, 2023Copper ContributorMy apologies as I forgot this wasn't something out of the box. More information on SP_DEV-FX-WEBPARTS can be found here: https://adoption.microsoft.com/en-us/sample-solution-gallery/sample/pnp-sp-dev-spfx-web-parts-react-script-editor-onprem/
Technical information regarding this app is here:
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor- JanetSMay 17, 2023Copper Contributor
Ryan Gardner Thank you for the information, unfortunately we are the government tenant so I will probably not be able to install.
- JodyM2273Aug 21, 2023Copper Contributor
Ryan Gardner I've looked & I do not see anything called Modern Script Editor, the closeet to this that I see is called (under Advanced wep parts) "code Snippet" I've tried using that and setting the type of code to CSS, since that is mentioned in your code. but it does not work -- Am I missing a web part called 'Modern Script Editor?' is that an add-on to standard web parts that are available?
- Ryan GardnerAug 21, 2023Copper ContributorJodyM2273 My apologies as I forgot this wasn't something out of the box. More information on SP_DEV-FX-WEBPARTS can be found here: https://adoption.microsoft.com/en-us/sample-solution-gallery/sample/pnp-sp-dev-spfx-web-parts-react-...
Technical information regarding this app is here:
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor- Paobrunelli52Nov 15, 2023Copper Contributor
an idea could be that of providing the capability to filter upon a content type, so that you have by definition all the filtered items with the same columns. At that point you can easly allow card layout definition in the same way you are able to do with lists' board cards layout .