volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Programmatically Add Gadget for User

Is there a way to programmatically add a Gadget (and/or Tab) to a user's Dashboard? I'd like all users to have a custom Gadget pre-added when they log in.

Similarly, is there a way to prevent a Gadget from being uninstalled?

#41998
Aug 05, 2010 16:07

Ended up finding the answer myself! Here's an example from the Online Center Developer Docs:

<episerver.shell>
  <dashboard>
    <templates>
      <add forRoles="Administrators, OtherRole">
        <tabs>
          <add name="Default" layout="3 Column">
            <gadgets>
              <add column="0" name="EPiServer.Cms.Shell.UI.Controllers.QuickLinksController" />
            </gadgets>
          </add>
        </tabs>
      </add>
    </templates>
  </dashboard>
</episerver.shell>
    
#42000
Aug 05, 2010 17:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.