I’m trying to set up a local, non-production environment to test and evaluate CQ5. I’ve downloaded the ‘Adobe Digital Enterprise Platform (ADEP) – Experience Services ’ and followed the install instruction given (http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html), but all I get is the option to use CRXDE lite. There is no option for CQ5 WCM as shown on some of the getting started scripts on the Adobe web site. How do I set up a website (there isn’t a websites menu open now) so that I can test/evaluate CQ5 locally? Thanks…fred
CQ5 Trial
Multiple smartimage widgets in a component dialog
Is there a way to have multiple smartimage widgets in a single dialog? Specifically I'm struggling with the requestSuffix parameter. Most of the other ones I can adapt to get the second widget to save its info to a different location from the first, but I can't see how to do that with requestSuffix. If the values are the same for both widgets, then once an image is selected, I see the same image in both tabs of the dialog. If I change it to something like /image2.img.png, it's no longer hitting the component as the resource. If I change it to .image2.img.png, the script handling this selector appears to break. I might be able to change that script, but that doesn't seem like it'll be a very flexible approach.
Any other options? I'm in CQ 5.4 if that matters.
Creating dialog using CQ.Util.build
Hi
After referring Entryform.jsp in blog component in libs , i tried a code bit
<div id= 'new'>
</div>
<script type="text/javascript">
CQ.Util.build({
"xtype":"panel",
"border":false,
"layout":"form",
"defaults": {
"hideLabel":true
},
"items":[{
"xtype":"textfield",
"defaultValue":"Entry title",
"fieldLabel":"title",
"name":"title"
}
,{
"xtype":"richtext",
"name":"text",
"width":"100%",
"enableSourceEdit":true,
"fieldLabel":"richtext"
}
],
"renderTo":"new"
});
</script>
This is giving me dialog in my page like
the richtext box is getting rendered like above .......
How can i get properly like
Thanks
veena
CQ5 Response Encoding
Hi Folks,
Does any one know whats default character encoding used by CQ5? (UTF-8, ISO-8859-1 etc)
Does it depend on whats the encoding used when the file was stored, if so whats the default encoding CRXDE uses to store file?
/etc/crxde/profiles/default/classpath.xml.xslt has following setting.. does it means anything in this case?
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
Thanks an in advance!
- Adnan
Inserting fragments in CQ AEM 5.6
Hello all,
Is there a way to retrieve a fragment from apache docroot and place it in CQ,
probably header as a fragment to be inserted to my site developed in CQ5.6
Regards,
NZ
Configuring Anonymous access for Sling Servlet
Hello Team,
My use case scenario is Apache webserver directs all the requests to the Sling servlet and Sling servlet would forward the calls to CQ or our internal webapp depending upon the url. I need the anonymous access for accessing my Sling Servlet.
When I call my Sling Servlet from the Apache webserver, it is redirected to libs/cq/core/content/login.html. When I hit in the CQ server direcly for that servlet thats not redirecting to the login page and directly the servlet is served. Only when apache webserver dispatches the request, its being redirected to /libs/cq/core/content/login.html.
[rid#18017320/initial] (4) RewriteCond: input='/mcdonalds' pattern='^/(.*)$' => matched
[rid#18017320/initial] (2) rewrite '/mcdonalds' -> '/apps/myvanity/forwardvanity?category=mcdonalds'
[rid#18017320/initial] (3) split uri=/apps/myvanity/forwardvanity?category=mcdonalds -> uri=/apps/myvanity/forwardvanity, args=category=mcdonalds
[rid#18017320/initial] (2) local path result: /apps/myvanity/forwardvanity
[rid#18017320/initial] (2) prefixed with document_root to /u/apache/htdocs/apps/myvanity/forwardvanity
[rid#18017320/initial] (1) go-ahead with /u/apache/htdocs/apps/myvanity/forwardvanity [OK]
[rid#180092b0/initial] (2) init rewrite engine with requested uri /libs/cq/core/content/login.html
When I look into the configuration in the Apache Sling Authentication Service, I could see the AllowAnonymouAccess option is being checked. Also I tried to configure the AuthenticationRequirements property to
-/apps/myvanity/forwardvanity to allow this url anonymous access explicitly. After the configuration I could even see that my entry got added in the Authenticator tab.
Authentication Requirement Configuration | ||
---|---|---|
Path | Authentication Required | Defining Service (Description or ID) |
/system/sling/logout | No | Apache Sling Request Authenticator |
/system/sling/login | No | Apache Sling Request Authenticator |
/system/sling/cqform/defaultlogin | No | Default Login Form for CQ Login Selector Authentication Handler |
/login | No | Day Communique LoginServlet |
/libs/cq/core/content/login | No | Day CQ Login Selector Authentication Handler |
/bin/login | No | Day Communique LoginServlet |
/apps/myvanity/forwardvanity | No | Apache Sling Request Authenticator |
/apps/myvanity/forwardvanity | No | Apache Sling Request Authenticator |
/ | No | Apache Sling Request Authenticator |
Could some one please suggest how to allow the anonymous access for that servlet such that my apache webserver would not redirect to login page. Any suggestions/pointers would be appreciated.
Best Regards,
Durga
Change the URL path for CQ?
How do you change the base URL so that /content/geometrixx/en does not show up in the URL? If www.geometrixx.com was the URL how do you make it so that /conent/geometrixx/en does not show up in the URL for the homepage?
Radio Buttons
How to create a group of radio buttons in cq5.5
Unable to replicate robots.txt through to the dispatcher
I implemented robots.txt on both author and publish instances using the link below:
http://crxdelight.com/2012/02/04/how-to-protect-your-cq-instances-from-google-searches/
robots.txt exist and it is visible on both author and publish instances. When i tried to display the robots.txt on dispatcher link "http://localhost/robots.txt", i got the error below:
Not Found
The requested URL /robots.txt was not found on this server.
Is there any specific configuration settings needed on the dispatcher for it to recognize the robots.txt? Or are there any issues that could cause this problem?
Thank you.
Disabling the "Target" context menu item in AEM v5.6
Is it possible to disable the "Target" context menu item on components in AEM v5.6? We don't want (at the moment) authors to have this ability and it seems to be interfering with some of our custom rendering code. We're in the process of upgrading to 5.6 and we'd like to disable this feature for now until we can identify and resolve the issues we're having with it.
Thanks!
Manually Clean Dispatcher Cache
We have a requirement that we update some details of a page from a feed after certain interval of time and then we need to clean the dispatcher cache.
We have done few sling mapping also
e.g.
for page /content/mysite/page1.html we have defined a sling mapping and whenever a request comes for http://domainname/mysite/page1.html it serves /content/mysite/page1.html
Cache generated : /mysite/page1.html in docroot folder
Once the page data is updated by the feed, we need to clean the cache.
I am trying to manually clean the cache by making following POST request at http://domainname/dispatcher/invalidate.cache with parameters
CQ-Action: Activate
CQ-Handle: /mysite
Content-Length: 0
It returns 201 with following but the cache is not deleted. Am I doing something wrong ?
Any help will be much appreciated.
Regards,
-Yogesh
CQ5.2 Taglibs not working
Our development author node went down today with the following error on every page:
org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: /apps/myApp/components/page/base/base.jsp(1,1) The absolute uri: http://www.day.com/taglibs/cq/1.0 cannot be resolved in either web.xml or the jar files deployed with this application
It's failing at the setup of the tag libraries in /libs/wcm/global.jsp
There's nothing we did out of the ordinary, just some standard component edits and then this error. I've searched around for a few hours but can't find anything to solve the issue.
Any ideas would be gratefully received
Author intallation issue
Hi,
Could anyone please help me on this? The environment is Linux. I followed the instruction to install the author instance in a new port number 8081 by use this command "java -XX:MaxPermSize=256m -Xmx1024M -jar CQ_author-p8081.jar", at the end, it shows "Press CTRL-C to shutdown the Quickstart server..." without error. I assume that the CQ Quickstart is working.
Then I ran the ./start from the bin directory. it shows these message:
17.01.2013 13:50:58.578 *INFO * [main] Starting launcher ...
17.01.2013 13:50:58.580 *INFO* [main] HTTP server port: 4502
17.01.2013 13:51:09.469 *INFO * [main] Startup completed
I assume that CQ is up, but the port is 4502, does it have to be 8081 which is same as quickstart?
At the end, I did not see any web browser opened like the instructions said "When the installation is completed, you are automatically presented with a new web browser window opening http://localhost:4502/".
Did I miss anything?
Thanks.
i18n text in Geometrixx demo site always display english version
Hi,
In Geometrixx footer (apps/geometrixx/components/page/footer.jsp), some text is displayed using i18n.get(). Like for example:
<p><%= i18n.get("We would like to keep in touch with you. Sign up here to receive our monthly newsletter on the latest products and services from Geometrixx.") %></p>
When I display a translated page, for example in french, I expect to get the french version of the i18n text. However, whatever the language, the english text is still being displayed.
I tried different texts, make sure the text exists and is correctly translated with the CQ Translator tool, activated and re-activated the page,... tried with other pages, ... always the same result, I'm unable to get the translated version.
What am I doing wrong? or missing?
Any help greatly appreciated. Thanks!
javax.jcr.nodetype.ConstraintViolationException : Node is protected
Hi
I have an nt:unstructured node to which i am writing some properties through java code. The properties are getting written but in my error log i am getting
javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.
this error message. Can anyone tell me why it happens and how to avoid this error message
Thanks and regards
Veena
How to export application developed in CQ as WAR file?
Hi,
We are using Eclipse as an IDE to develop our application using Adobe CQ's WCM capabilities. Is there a way to export the project files and its dependencies as a WAR file? We need this to run automated security scans on our code.
We are using the following guidelines for developing our code:
http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing_with_eclipse. html
ReplicationActionType.DELETE
Hi
I have used this method to delete a file.
I have used methods such as ReplicationActionType.Activate and ReplicationActionType.Deactivate
Where the file in jcr:repository gets updated with the property cq:lastReplicationAction as Activate/Deactivate correspondingly.
Similarly when i used ReplicationActionType.Delete the file in the repository gets updated as cq:lastReplicationAction Delete , but not actually deleting the file.
Harish
CRXDE and CQ5.2 connection problems
Hi all, I'm sure this is a pathetically easy question but I'm a noob and struggling getting started. The company I am working with has CQ5.2 which (apparently) does not CRXDE Lite available for development. I am on a Mac (OSX Mountain Lion). I thought CRXDE would be the answer but I have fallen at the first hurdle. I have the URL of the development instance of the site but CRXDE will not connect and generates the error: "Error initializing workspace: Error during IDE initialization".
The reason I'm asking the question is that I don't know if this is a mismatch between CRX version and CRXDE, a Mac issue, or is it that CQ5.2 is out of date etc?
For brevity, my set-up is as follows:
CRX 1.4.2
CQ5.2
OSX Mountain Lion (10.8.2)
CRXDE 1.0.1
Where am I going wrong? Any help will be massively appreciated.
cafebabe-cafe-babe-cafe-babecafebabe
I'm trying to create some groups and permissions to lock down certain parts of CQ5.5 to particular users. For the most part everything is ok, but I seem to keep hitting a barrier with the stuttering barista.
When I create a user, they have no permissions by default (aside from some /home ones if I understand correctly). When I log in with this user, I get:
No resource found
Cannot serve request to /libs/cq/core/content/welcome.html in /libs/sling/servlet/errorhandler/404.jsp
All good, expected that.
If I add read access to the root node for this user, after logging in everything looks ok as if I've logged in as an admin. Permissions shown here:
But if I remove root node read access, and then give every sub node underneath root read access
and log in after this, the RHS menu errors with :
The error.log gives:
14.02.2013 01:43:22.885 *ERROR* [123.456.789.123 [1360766602856] GET /libs/cq/core/content/welcome.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.jcr.AccessDeniedException: cannot read item cafebabe-cafe-babe-cafe-babecafebabe
The only surface difference I see between the two is the lack of /bin having read permission. When I try to add read permisson to /bin I get a popup saying
No modifiable ACL at /bin
Also, there's asterisks next to all of the selected nodes, which were not present when selecting the root node. The CQ5 docs state the following:
For an action at a given path:
* (asterisk) | There is at least one local entry (either effective or ineffective). These wildcard ACLs are defined in CRX. |
! (exclamation mark) | There is at least one entry that currently has no effect. |
When you hover over the asterisk or exclamation mark, a tooltip provides more details about the declared entries. The tooltip is split into two parts:
Upper part | Lists the effective entries. |
Lower part | Lists the noneffective entries that may have an effect somewhere else in the tree (as indicated by a special attribute present with the corresponding ACE limiting the scope of the entry). Alternatively, this is an entry whose effect has been revoked by another entry defined at the given path or at an ancestor node. |
When I hover over the asterisks, I get the message
Allowed for
testuser (allow)
To me, this means everything is allowed. The docs also state that permissions are inherited.
So I guess my questions are:
- Why doesn't selecting all nodes directly under the root node yield the same results as selecting the root node itself?
- Why can't I select the /bin node manually, but it can be selected by default when selecting the root node?
- Is there a way to see down the tree structure what nodes are selected or not without manually opening every branch one by one?
- Where is cafebabe-cafe-babe-cafe-babecafebabe and what permissions do I need to access this?
I think I have more questions, but I'm tired. Need coffee. Where's cafebabe...?
K
is there anyway to update the node properties using query manager ?
I have to update few properties of specific nodes. I am able to get them using httpclient or sql query . I would like to know ,how to write back to repository with new values ? using either JCR or query builder ?
Any help apperciated.
I am getting info using 1) httpclient :
DefaultHttpClient httpclient = new DefaultHttpClient();
Credentials defaultcreds = new UsernamePasswordCredentials(this.getUsername(), this.getPassword());
httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, defaultcreds);
String request = this.host + "/bin/querybuilder.json";
HttpPost httppost = new HttpPost(request);
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("path", path));
nameValuePairs.add(new BasicNameValuePair("type", "cq:Page"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String responseBody = httpclient.execute(httppost, responseHandler);
2) using sql query
SELECT* FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/path/to/node]) AND s.[sling:resourceType]= CAST('some/thing/' AS STRING)