Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

sidekick.js issues inmigration from cq5.4 to cq5.5..

Avatar

Level 3

Hi,

I am currently using cq5.4 and in author sidekick and side admin page iam having two separate options for activating the two publishers..

It is working fine but we want to migrate from cq5.4 to cq5.5...While doing we are unable to find those options in sidekick and siteadmin page aswell..

Is there any api changes happens from cq5.4 to cq5.5..

Thanks,

Sony C

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Check the init.jsp file that gets referenced in the foundation page component's head.jsp. That is where any changes in the JS that launches the sidekick would probably occur. I'm not specifically aware of any, but I wouldn't be surprised if there were some. I believe that file resides in /libs/cq/wcm/core/components/init/ or something like that.

Interesting timing, because I just started a thread about a different challenge I'm having with adding additional sidekick items.

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Check the init.jsp file that gets referenced in the foundation page component's head.jsp. That is where any changes in the JS that launches the sidekick would probably occur. I'm not specifically aware of any, but I wouldn't be surprised if there were some. I believe that file resides in /libs/cq/wcm/core/components/init/ or something like that.

Interesting timing, because I just started a thread about a different challenge I'm having with adding additional sidekick items.

Avatar

Level 3

Thanks for reply Ryan,

But i identified something new here..when i am using cq5.5 my user authentication method is not getting executed, So items are not showing up in the sidekick.

Here i am specifying methods which are getting error while calling,

1)CQ.User.getCurrentUser().hasPermissionOn("wcm/core/privileges/replicate", CQ.wcm.Sidekick.findSidekick(this).getPath())

2)user.hasPermissionOn(Replicator.REPLICATION_PERMISSION, resource_prsnt.getPath())

So, is there any restriction to use these methods in cq5.5?

How to achieve this in cq5.5?

Thanks,

Sony C

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----