tag:blogger.com,1999:blog-5778419059463879376.post834759420954995804..comments2024-03-18T22:43:30.073-07:00Comments on Adobe CQ/Adobe AEM: How to create pages using curl command in CQ / WEMYogihttp://www.blogger.com/profile/13222275932054732457noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-5778419059463879376.post-78496676752126406072015-01-29T17:54:45.992-08:002015-01-29T17:54:45.992-08:00Yogesh,
You are simply awsome !
Yes TypeHint wor...Yogesh,<br /><br />You are simply awsome !<br /><br />Yes TypeHint works like charm. Also using TypeHint we can specify the DATATYPE too.<br /><br />So if I give below parameter with Boolean[] it create multi value<br />-F "jcr:content/myVar@TypeHint=Boolean[]"<br /><br />and if I remove [] then it creates single value property<br />-F "jcr:content/myVar@TypeHint=Boolean"<br /><br />Example Command:<br />1) MULTI VALUE<br /><br />curl -u admin:admin -F "jcr:primaryType=cq:Page" -F "jcr:content/jcr:primaryType=cq:PageContent" -F "jcr:content/myVar@TypeHint=Boolean[]" -F "jcr:content/myVar=true" -F "jcr:content/sling:resourceType=geometrixx/components/contentpage" http://localhost:4502/content/geometrixx/en/rohit2<br /><br />2) SINGLE VALUE<br /><br />curl -u admin:admin -F "jcr:primaryType=cq:Page" -F "jcr:content/jcr:primaryType=cq:PageContent" -F "jcr:content/myVar@TypeHint=Boolean" -F "jcr:content/myVar=true" -F "jcr:content/sling:resourceType=geometrixx/components/contentpage" http://localhost:4502/content/geometrixx/en/rohit2<br /><br /><br /><br /><br />Rohithttps://www.blogger.com/profile/06815152990275844261noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-61268357765038159822015-01-29T16:23:33.145-08:002015-01-29T16:23:33.145-08:00Please check http://sling.apache.org/documentation...Please check http://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html either you can use multiple value for same property or TypeHintYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-42519463663675518482015-01-29T09:53:20.246-08:002015-01-29T09:53:20.246-08:00Hi Yogesh,
Thanks for the post.
How we do pass D...Hi Yogesh,<br /><br />Thanks for the post.<br /><br />How we do pass DATA TYPE of property using CURL command or a MULTI VALUE property<br /><br />For example:<br />I have a MULTI VALUE property whose type in CRX is appearing as "String[]"<br /><br />How do we do this using CURL. What should I write in CURL command to specify this. Currently by default CURL sets the data type as "String" for everything.<br /><br />Rohithttps://www.blogger.com/profile/06815152990275844261noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-8394673692157970112013-09-16T22:54:25.251-07:002013-09-16T22:54:25.251-07:00Hi,
I am trying the below curl command to add two...Hi,<br /><br />I am trying the below curl command to add two filters to a package with in CQ5.4 author, however I am facing errors.<br /><br />curl -g -u admin:admin -X POST --data _charset_=UTF-8 --data groupName=my_packages --data version=0 --data filter=[{"root":"/apps/test/components/adv","rules":[]},{"root":"/apps/test/components/check-link","rules":[]}] --data packageName=curlpackage-0 --data path=/etc/packages/my_packages/curlpackage-0-0.zip http://localhost:4502/crx/packmgr/update.jsp<br /><br />Error:{"success":false,"msg":"Could not modify package. Missing value. at character 7<br />of [{root:/apps/LearnBuild/components/att-advantage,rules:[]},{root:/apps/LearnB<br />uild/components/check-link,rules:[]}]","path":"/etc/packages/my_packages/curlpac<br />kage-0-0.zip"}<br /><br />Can you please help? Please let me know what is missing here. I checked the below links as well, but still need to get this error resolved.<br /><br />http://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/cq-maintenance/cq-package-manager<br /><br />http://aemfaq.blogspot.com/2013/09/creating-package-with-filtersexclusion.html<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-171669642861000062013-08-08T07:22:43.853-07:002013-08-08T07:22:43.853-07:00You can not use PageManager Jar file outside CQ Co...You can not use PageManager Jar file outside CQ Context. You have to use CURL service or jackrabbit API. In case you have to find dependency within CQ context for pom.xml then you can use http://HOST:PORT/system/console/depfinder and put your package name.Yogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-50318962944648121412013-08-07T23:44:58.092-07:002013-08-07T23:44:58.092-07:00Hi.. I am Migrating content from DCTM to CQ.
I wa...Hi.. I am Migrating content from DCTM to CQ. <br />I want to use com.day.cq.wcm.api.Pagemanager in my Java code. <br />Can you please tell me which jar file can be used ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-39848455222476941092013-06-17T09:16:14.023-07:002013-06-17T09:16:14.023-07:00Check here http://www.cqtutorial.com/courses/cq-ad...Check here http://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/cq-maintenance/cq-package-managerYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-83844571237165737972013-06-17T09:16:04.922-07:002013-06-17T09:16:04.922-07:00Check Here if this helps http://www.cqtutorial.com...Check Here if this helps http://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/cq-maintenance/cq-package-managerYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-80639321601975558182013-06-17T09:03:49.333-07:002013-06-17T09:03:49.333-07:00How to rename a package using curl ?
Thanks
Rohit...How to rename a package using curl ?<br /><br />Thanks<br />Rohit VarshneyRohit Varshneyhttps://www.blogger.com/profile/14295047139187234618noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-86463943176379756302013-06-17T09:02:04.171-07:002013-06-17T09:02:04.171-07:00Is there any similar way to create packages using ...Is there any similar way to create packages using curl, I need to pass the value of filters as well through curl.<br /><br />Thanks<br />Rohit VarshneyRohit Varshneyhttps://www.blogger.com/profile/14295047139187234618noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-33031124990998076192013-01-14T13:58:51.244-08:002013-01-14T13:58:51.244-08:00Sujeet,
For curl please see http://curl.haxx.se/d...Sujeet,<br /><br />For curl please see http://curl.haxx.se/docs/manpage.html it comes with any Unix based system. For windows you can use something like Wget to do same thing.<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-4103269289436360292013-01-03T00:50:09.759-08:002013-01-03T00:50:09.759-08:00Can you please tell me where can i find curl comma...Can you please tell me where can i find curl command?Sujeet Sharmahttps://www.blogger.com/profile/04106553059600821013noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-90441483186251383752013-01-03T00:49:09.836-08:002013-01-03T00:49:09.836-08:00Thanks Yogesh...Thanks Yogesh...Sujeet Sharmahttps://www.blogger.com/profile/04106553059600821013noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-7572702076062211872012-12-08T19:28:46.872-08:002012-12-08T19:28:46.872-08:00Sujeet,
You can also do that using CURL or form p...Sujeet,<br /><br />You can also do that using CURL or form post see http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html for example.Yogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-174357878011524022012-12-08T19:25:19.599-08:002012-12-08T19:25:19.599-08:00Hi,
I am creating page using wcmcommand through j...Hi,<br /><br />I am creating page using wcmcommand through jquery and its being created successfully but I am not able to add additional properties in page jcr for example I want to add property fullname:asedd in page jcr. Can you please help me out?Sujeet Sharmahttps://www.blogger.com/profile/04106553059600821013noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-89998568523036375242012-06-07T10:06:04.251-07:002012-06-07T10:06:04.251-07:00ok, looks like this works:
curl -u admin:admin --...ok, looks like this works:<br /><br />curl -u admin:admin --data "status=browser&cmd=createPage&label=publish22&title=publish22&parentPath=/etc/replication/agents.author&template=/libs/cq/replication/templates/agent" https://author.hostname.com/bin/wcmcommanddiecasthttps://www.blogger.com/profile/16101473808931692998noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-52530934476526204612012-06-07T09:53:55.088-07:002012-06-07T09:53:55.088-07:00I'm trying to add a replication agent on the a...I'm trying to add a replication agent on the author and getting a response of:<br /><br />Method POST not supported (405)<br />The requested URL /bin/wcmcommand resulted in an error in com.day.cq.wcm.core.impl.commands.WCMCommandServlet.<br /><br />This is the command that I'm sending:<br /><br />curl -u admin:admin –F cmd="createPage" -F label="publish22" -F title="publish22" -F parentPath="/etc/replication/agents.author" -F template="/libs/cq/replication/templates/agent" https://author.hostname.com/bin/wcmcommanddiecasthttps://www.blogger.com/profile/16101473808931692998noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-35793635190830467312012-03-23T21:02:14.636-07:002012-03-23T21:02:14.636-07:00Sorry for replying late .. was really busy ... You...Sorry for replying late .. was really busy ... You can use [1] or [2] .. let me know if that helps<br /><br />[1] curl -u admin:admin -F cmd="Activate" -F path="some page path" http://localhost:4502/bin/replicate.json<br /><br />[2] curl -u admin:admin -F cmd=activate -F ignoredeactivated=true -F onlymodified=true -F path= http://localhost:4502/etc/replication/treeactivation.htmlYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-31878731021919116152012-03-15T07:28:29.822-07:002012-03-15T07:28:29.822-07:00Is there a way to activate a page using cURL?Is there a way to activate a page using cURL?gbrauserhttps://www.blogger.com/profile/11519688514791896378noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-34838039996127677212011-12-21T22:04:50.633-08:002011-12-21T22:04:50.633-08:00Did you check http://forums.adobe.com/message/4031...Did you check http://forums.adobe.com/message/4031201<br />And http://sling.apache.org/site/managing-users-and-groups-jackrabbitusermanager.html<br /><br />You need appropriate bundle for this to work<br /><br />Or try<br /><br />curl -u admin:admin -F:status=browser -F_charset_=UTF-8 -Frep:password=test -Frep:userId=yogeshTest -FgivenName=yogesh -FfamilyName=upadhyay http://localhost:4502/libs/cq/security/authorizables/POSTYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-20858294030652084902011-12-20T00:06:00.625-08:002011-12-20T00:06:00.625-08:00Hi Yogesh.
Is there a similar way to create and ma...Hi Yogesh.<br />Is there a similar way to create and maintain users/groups/permissons using curl?<br />I've been trying to do this using the examples from the Apache Sling homepage, but I get a number of error messages each time.Tobiasnoreply@blogger.com