When using the sxc-toolbar directive from dnn-sxc-angular-8, the 'contentitems' tool is never visible to non-host users. In order to show the toolbar, a nasty workaround is needed.

Follow these steps:

  • Add a file named contentitems-toolbar.ts
  • Insert this content
  • Where you need the toolbar, import the previously created file:
    import contentItemsToolbar from '../../shared/contentitems-toolbar'
  • Add a variable to your class, e.g.
    toolbarSettings: any = contentItemsToolbar("Reference", {CreateDate:new Date()})
  • Add the toolbar where you need it, e.g.
    <div class="row" [sxc-toolbar]='toolbarSettings'>