2016-11-01 17 views
0
私は、次のエラーを取得しています

AEM 6.1行方不明CQ javascript関数

VM13430 editor.js:25678Uncaught TypeError: Cannot read property 'shared' of undefined 

花崗岩UIでAEM 6.1で作成者モードでページを読み込みます。それは、次の行で失敗している:

var isLockOwner = true; 
    if(info.status.isLocked){ 
     isLockOwner = ns.ContentFrame && ns.ContentFrame.contentWindow.CQ.shared.User.data.userID === info.status.lockOwner; 
    } 

とデバッグns.ContentFrame.contentWindow.CQで、「CQ」は不足しています。 Geometrixxのデモコンテンツをチェックすると、 'CQ'は関数であり、jqueryのjQuery解像度と仮定します。

その結果、ロックされているとページのロックを解除できません。私はページのグリッドビューでは、ページのロックを解除することはできますが。

「ns.ContentFrame.contentWindow」にCQが読み込まれるようにするにはどうすればよいですか? clientlibsディレクトリ内.content.xml

+1

あなたは何clientlibsをロードしていますか?どのような関係がありますか?あなたはあなたのクライアントライブラリに「埋め込み」をしていますか? – ub1k

+0

@ ub1k、ありがとう、あなたは正しい方向に私を指摘しました。デモGeometrixxサイトを調べると、「埋め込み」が表示されないようです。 – enkor

答えて

1

は、次の行を追加します。

embed="[underscore,granite.shared,cq.shared,jquery.jcarousel,cq.foundation,cq.foundation-main,jquery-ui,cq.jquery.ui,personalization,personalization.core,personalization.core.kernel,personalization.clientcontext.kernel,personalization.stores.kernel,personalization.kernel,personalization.clientcontext,personalization.stores,cq.social.tagging,cq.ckeditor,cq.social.scf,cq.social.author.hbs.message,cq.social.author.hbs.messagebox,cq.social.author.hbs.composemessage,cq.social.author.hbs.userchooser,cq.social.author.hbs.comments,cq.social.author.hbs.forum,cq.social.author.hbs.journal,cq.social.author.hbs.rating,cq.social.author.hbs.qna,cq.social.author.hbs.voting,cq.social.author.hbs.reviews,cq.social.author.hbs.search,cq.social.author.hbs.calendar,cq.social.hbs.socialgraph,cq.social.calendar,cq.social.calendar.eventbasics,cq.social.calendar.fullcalendar,cq.social.author.hbs.socialgraph.following,cq.social.author.hbs.activitystreams,cq.social.commons.infiniscroll]"

+0

私はAdobeがすべてを隠していることは嫌いです。あなたの答えは素晴らしいです。アドビのすべてのjavascriptオブジェクトが現在動作しています。それは決して期待しないでください。ありがとうございました –

+0

ああ申し訳ありませんが、私はそれが助けられたと思っていましたが、それはdevolperモードのクロムブラウザでした。私はまだ私のjavascriptファイルのCQオブジェクトに到達していない –

関連する問題