Skip navigation

CQ5

Currently Being Moderated

Remove Help Buttons

Aug 1, 2012 10:57 AM

Hello,

 

We'd like to remove the Help buttons found on the Sidekick and the text component edit dialog boxes.  We wish to do this because we have a defined internal support process in place (with internal knowledge base, support center, etc.) and don't want Authors wasting time trying to get support form day.com.

 

If we cannot remove the buttons altogether, perhaps we can override the destination URL? 

 

Any thoughts on how to accomplish this?

 
Replies
  • Justin Edelson
    252 posts
    Nov 24, 2010
    Currently Being Moderated
    Aug 1, 2012 11:10 AM   in reply to Jayatl

    You can remove the help button from the Sidekick by changing the config object passed to CQ.WCM.launchSidekick so that it includes "tools: []", e.g.

    CQ.WCM.launchSidekick("/content/geometrixx/en/products", {

                propsDialog: "/libs/foundation/components/page/dialog",
                locked: false,
                tools: []
            });

     

    For components, the help button shouldn't appear if the helpPath isn't defined on the component's dialog node.

     
    |
    Mark as:
  • Justin Edelson
    252 posts
    Nov 24, 2010
    Currently Being Moderated
    Aug 1, 2012 12:22 PM   in reply to Jayatl

    It is hard to say without knowing more about your project, but typically, the only place which directly impacts most authors is /libs/wcm/core/components/init/init.jsp which is  included in head.jsp. So I'd recommend just pointing to a modified copy of this file in your head.jsp (or however you are constructing pages).

     

    As I said above, helpPath is defined as a property of the dialog node.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 30, 2013 11:29 AM   in reply to Justin Edelson

    Hi Justin - how do you override/turn off a foundation component's helpPath?

     

    For example, image dialog has a helpPath already defined and I have my own image component which refers to the foundation/components/image as it's sling:resourceSuperType.

     

    Currently, I don't even need to define my own dialog node, I'm just changing the image.jsp

     

    What would be the right way to override/turn off the helpPath set in foundation/components/image's dialog?

     

    Thanks in advance!

    Jason

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 2, 2013 1:24 PM   in reply to JasonLLee

    Hi Jason,

              Might be you need to overlay & modify      /libs/cq/ui/widgets/source/widgets/Dialog.js

    Thanks,

    Sham

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2013 2:38 PM   in reply to Sham HC

    Thanks for replying, Sham!

     

    I got this done by having to create the cq:Dialog node and then in the items [cq:WidgetCollection] node under it, have the widgetCollection have the xtype property be cqinclude and a path that points back to the rest of the base implementation of the dialog /libs/foundation/components/image/dialog/items.infinity.json

     

    Thanks!

    Jason

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points