Quantcast
Channel: Adobe Community: Message List - CQ5 (read only)
Viewing all 2249 articles
Browse latest View live

Re: Disabling the "Target" context menu item in AEM v5.6

$
0
0

We also just ran into an issue with the Target functionality.  Some of our components would fail if it was enabled on them by right clicking and then hitting the Target button in the context menu or using the button on the Toolbar.  Also we are not using this 'Target' feature of CQ.  So I first evauluated doing overlays and setting the cq:disableTargeting option in the editConfig nodes of parsys and iparsys, but soon found that did not cover all of our components and seemed like a lot of overlaying to disable this feature, cluttering our codebase.  I'm sure there are other ways and maybe even more graceful or clean ways but my solution was to overlay one file /libs/cq/ui/widgets/source/widgets/wcm/EditBase.js in /apps/cq/ui/widgets/source/widgets/wcm/EditBase.js and then I just added one line of code.  If you search the js file for addTargetingActions you will find the function that adds the button to the toolbar.  A config object is passed into the function.  If you add one line at the beginning of the funtion just below line 1728...

 

config.disableTargeting = true;

 

that will 'override' the feature by keeping the button from being shown at all in any component without having to edit all your components or do overlays of parsys etc.  It does add the problem that when you upgrade you will have to make sure you don't need to update this file, but I saw it as a trade-off to doing multiple overlays.  Hopefully this feature will be configurable at an administrative level in the future, but until then this will have to do

 

Best Regards,

Adam Yocum

PSU Libraries


Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

When you create the imageNode, you will get an empty node with no property "fileReference". So you will end up with "imageURL" being empty ...

 

Jörg

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

@Jorg: how to resolve this issue? i want to retrieve the image path..

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

Even I tried this way but not getting the path.

 

if (currentNode.hasNode("image")) {

    String imagePath = currentNode.getNode("image").getPath();

     log.info(“imagePath:”+ imagePath)

}

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

Just because you give it the name "image" it doesn't mean that it has a property "filereference" ;-). And the path you're referring to is not the path to the file in the filesystem (from where you uploaded the image), but the path of the node in the repo.

 

Jörg

Re: how to get the local file system path of an image that loaded into the image component in cq5?

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

I am not aware of any method to get to the path in the filesystem, where an image was originally uploaded from.

 

Why do you need this path?

 

Jörg

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283 829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.

 

Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase.


Re: Setting Eclipse Environment: required jar file for

Re: how to get the local file system path of an image that loaded into the image component in cq5?

$
0
0

Repository does not store reference location for nt:resource node  (From where the content is uploaded)

 

I suggest check who has last modified (jcr:lastModifiedBy) and search local computer for image name.

 

The best practice is configure vault with folders on local drive to upload and check in to keep track. Try cloudsafe it has events tab that might help (Please note I have not tried this before)

 

Thanks,

Ajit

Re: how to automatically activate dam resources indirectly relatived to a pages when it is activated ?

$
0
0

Hi, Jörg

 

Thanks a lot.

 

 

Yes, we sure that the very same images are used on publish.

All of those images are stored in node separated from pages.

In these pages we can't write them as properties because those images are managed separated,

we only kown the folder where those images are stored.

 

cheers,

Zhao

Re: Does adobe analytics (insight or site catalyst) provides insession data for targeting

$
0
0

Hi,

 

I came to know this feature available in 5.6 onwards but we can expect 10-15 mins of delay.

 

Thanks,

Pawan

Obtain report-suite ID from the SiteCatalyst Framework dynamically

$
0
0

Hi,

 

I have setup the Adobe SiteCatalyst Framework in CloudService Configurations of AEM.

 

The client's provided s_code.js expects an argument s_account and the value of s_account should be the report-suite-id to track the analytics data to.

 

So I am trying to get the value of report-suide-id from the SiteCatalyst Framework associated with the page.

Two approaches that strike me are:

 

  1. Use the client-context API somehow to extract the report-suite-Id from framework. This seems more like the way to go but unable to figure out exactly how?
  2. A crude approach could be to use the reference to the framework in page's content and extract the value of report-suite-id and assign the same value to s_account variable in client's s_code.js

 

Any pointers towards the recommended  approach to achieve this would be handy.

 

Thanks,

Hemant

CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

$
0
0

On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

Re: CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

$
0
0

Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render

 

Paste your jsp code in case you need further help

 

Thanks,

Ajit


Issue while installing SP2 on CQ5.5

$
0
0

Hi,

 

I have been trying to upgrade CQ5 5.5 to Service Pack 2.

Out of 10, the upgrade gets successful 7 times but it fails for the rest of the times.

 

Script that I am using:

 

#cq5-update-pkg-5.5.10.zip and cq5-service-pack-2.zip

        curl -u ${crx_site_user}:${crx_site_password} -F package=@$PACKAGE_DIR/cq5-update-pkg-5.5.10.zip http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/?cmd=u pload

 

 

        curl -u ${crx_site_user}:${crx_site_password} -F package=@$PACKAGE_DIR/cq5-service-pack-2.zip http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/?cmd=u pload

 

 

        curl -u ${crx_site_user}:${crx_site_password} -X POST http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/etc/pa ckages/day/cq550/update/cq-update-pkg-5.5.10.zip?cmd=install

 

 

        curl -u ${crx_site_user}:${crx_site_password} -X POST http://${privateIP}:${cq5_author_listen_port}/crx/packmgr/service/.json/etc/pa ckages/day/cq550/update/cq-service-pack-5.5.2.20121012.zip?cmd=install

 

 

CQ5 Update Package gets installed but it gets failed while installation of cq5-service-pack-2.zip

 

<html><head><title>

500

Internal Server Error

</title></head><body><h1>

Internal Server Error

 

Internal Server Error

</title></head><body><h1>

Internal Server Error

</h1>

</body></html>

 

This error corrupts my cq5 Author Package. Same behavior is observed for Publisher Package. Though, this issue is intermittent, but the after-effects leads to fresh installation of CQ5.

 

Any help would be appreciated.

Re: Issue while installing SP2 on CQ5.5

$
0
0

Error Logs

 

21.06.2013 06:06:45.494 *INFO* [152.144.62.112 [1371794797261] POST /crx/packmgr/service/.json/?cmd=upload HTTP/1.1] com.day.jcr.vault.packaging.impl.JcrPackageDefinitionImpl unwrapping package day/cq550/update:cq-service-pack:5.5.2.20121012

 

21.06.2013 06:10:49.575 *ERROR* [152.144.62.112 [1371795049335] POST /crx/packmgr/service/.json/etc/packages/day/cq550/update/cq-service-p ack-5.5.2.20121012.zip HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Transformer' with type 'linkchecker'.

        at org.apache.sling.rewriter.impl.PipelineImpl.getPipelineComponent(Pipe lineImpl.java:160)

        at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:10 2)

        at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(Proc essorManagerImpl.java:445)

        at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(Rewriter Response.java:172)

        at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterRes ponse.java:110)

        at org.apache.sling.servlets.post.HtmlResponse.doSend(HtmlResponse.java: 113)

        at org.apache.sling.servlets.post.AbstractPostResponse.send(AbstractPost Response.java:376)

        at org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPost Servlet.java:225)

        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(Sling AllMethodsServlet.java:148)

 

21.06.2013 06:10:49.706 *ERROR* [152.144.62.112 [1371795049335] POST /crx/packmgr/service/.json/etc/packages/day/cq550/update/cq-service-p ack-5.5.2.20121012.zip HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Calling the error handler resulted in an error org.apache.sling.api.scripting.ScriptEvaluationException:

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultS lingScript.java:385)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultS lingScript.java:170)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(Defau ltSlingScript.java:456)

        at org.apache.sling.servlets.resolver.internal.SlingServletResolver.hand leError(SlingServletResolver.java:764)

 

Caused by: org.apache.sling.api.SlingException: Unable to setup processor: Unable to get component of class 'interface org.apache.sling.rewriter.Transformer' with type 'linkchecker'.

        at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(Proc essorManagerImpl.java:452)

        at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(Rewriter Response.java:172)

        at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterRes ponse.java:110)

        at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter( OnDemandWriter.java:38)

        at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDe mandWriter.java:61)

        at java.io.PrintWriter.write(PrintWriter.java:382)

        at org.apache.sling.scripting.jsp.jasper.runtime.JspWriterImpl.flushBuff er(JspWriterImpl.java:119)

        at org.apache.sling.scripting.jsp.jasper.runtime.PageContextImpl.release (PageContextImpl.java:191)

        at org.apache.sling.scripting.jsp.jasper.runtime.JspFactoryImpl.internal ReleasePageContext(JspFactoryImpl.java:99)

        at org.apache.sling.scripting.jsp.jasper.runtime.JspFactoryImpl.releaseP ageContext(JspFactoryImpl.java:71)

        at org.apache.sling.scripting.jsp.jasper.compiler.JspRuntimeContext$JspF actoryHandler.releasePageContext(JspRuntimeContext.java:120)

        at org.apache.jsp.libs.sling.servlet.errorhandler.default_jsp._jspServic e(default_jsp.java:320)

        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(Htt pJspBase.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.servi ce(JspServletWrapper.java:420)

        ... 52 more

Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Transformer' with type 'linkchecker'.

how to set com.day.cq.search log level to INFO

$
0
0

Hi,

 

Anyone knows how to set com.day.cq.search log level to 'INFO'?

 

Thanks

Re: add subbullets functionality in the richtext component

SQL2 | How to add condition on multi-value field?

$
0
0

Hello,

 

I am trying to perform a JCR query using SQL2 in CQ5.6. For one of the conditions, I wish to compare a multi-value field (E.g. cq:tags).

 

How would that be possible? Currenlt, I only managed to compare my query item's cq:tags to a single value (e.g. WHERE page.[cq:tags]='mynspace:mytag').

 

Also, is there a syntax reference for SQL2 queries? Currently I have only managed to find something tanglible here : http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/s rc/test/resources/org/apache/jackrabbit/spi/commons/query/sql2/test.sq l2.txt?view=markup

 

Best regards, thanks in advance,

K.

Viewing all 2249 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>