Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How can I update parsys rich text content using curl?

Avatar

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
Rui_J
Level 2

Likes

4 likes

Total Posts

39 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
Rui_J
Level 2

15-10-2015

Hi,

   After observing the jcr content structure,I am using curl to update the parsys rich text content for  content/<mywebsite>/<myPage>/jcr:content/par/text/text.

 

   This is the curl command I am using.

   curl -u admin:admin -F"par/jcr:primaryType=nt:unstructured" -F"par/sling:resourceType=foundation/components/parsys" -F"par/text/text=not rich text" http://localhost:4502/content/mywebsite/en/Products/jcr:content

 

   This only works if I put plain text for par/text/text="not rich text", How can i embed html tags in the curl such as -F"par/text/text=<tag>some rich text</tag>"?

   [img]2014-06-08_17-04-30.png[/img]

   Thank you

View Entire Topic

Avatar

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct Reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct Reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Sham_HC
Level 10

15-10-2015

curl -u admin:admin -X POST -d "sling:resourceType=foundation/components/text&textIsRich=true&text=<p>Sometest</p>" http://localhost:4502/content/geometrixx/en/jcr:content/par/text