i struggling problem can solved getting absolute wcmmode of page.
by absolute wcmmode, mean wcmmode independent of components. example, if try wcmmode of component returns "edit" if component configurable @ page. if component not configurable @ particular page, returns wcmmode value "preview".
> <%=wcmmode.fromrequest(slingrequest)%> the problem can solved checking on behaviour of sidekick. way bit risky.
> cq.wcm.issidekickready() && > cq.wcm.getcontentwindow().cq.wcm.areeditablesready() is there other way problem solved? please share ideas.
generally in authoring environment should able away checking if component in edit mode or preview mode.
<% wcmmode wcmmode = wcmmode.fromrequest(slingrequest) if(wcmmode.equals(wcmmode.edit) || wcmmode.equals(wcmmode.preview)) { // stuff. } %> other no other way determining absolute wcmmode looking for. great if can tell me case , looking for.
Comments
Post a Comment