Skip navigation

CQ5

Currently Being Moderated

Best way to rename default components

Jul 23, 2012 10:01 AM

Hello,

 

We wish to rename a few of the default components (jcr:title), as well as change the sidekick component group.  I can obviously go into libs/foundation/componentname and make the change there - but there will be headaches when we upgrade.

 

To support this, do I really need to copy the entire component into our apps folder just to change the title/folder?  I'm thinking there has to be a better way.

 
Replies
  • Currently Being Moderated
    Jul 23, 2012 6:01 PM   in reply to Jayatl

    Hi Jayati,

     

        What is your use case & what is wrong with current name?  Why do you spend time on renaming the title without any added functionality.    Yes recommended way is to overlay.

     

    Thanks,

    Sham

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 24, 2012 4:12 PM   in reply to Jayatl

    Your assumption "Sidekick only supports 4 accordion tabs" is wrong.  

     

    In CQ the component groups in the SideKick has some assigning rules like

    * Groups with minimum components will be consolidated into the "Other" group.

    * The allowed maximum of groups. Exceeding it introduces the virtual group "Other"

    ..

     

    Both of this are configurable at [1] and variables are MIN_COMPS & MAX_GROUPS.

     

    If there is a need to change, you can overlay [2] the script found in [1] and modify the constant value

     

    CQ.wcm.ComponentList.MAX_GROUPS = 4;

    CQ.wcm.ComponentList.MIN_COMPS = 3;

     

    [1] /libs/cq/ui/widgets/source/widgets/wcm/ComponentList.js

    [2] /apps/cq/ui/widgets/source/widgets/wcm/ComponentList.js

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 4:25 AM   in reply to Jayatl

    The feature you are looking to regroup does not exists oob. As you have informed earlier one option would be to modify at the components.  The other options (just a guess) would be modify componentStore or explore sidekick to explicitly reset the value rather than modifying at each component.  If i find time today I will research & update you.   Please file a daycare for tracking this enhancement.

     
    |
    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