Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Does CQ provide a valid example of reverse replication for forms?

$
0
0

I am not talking about this:

http://helpx.adobe.com/cq/kb/HowToUseReverseReplication.html

and not this:

http://mkalugin-cq.blogspot.com/2012/02/reverse-replication-woes-solved.html

 

They work for polls and comments, but they don't seem to be working for forms. As far as I understand, the default servlet for forms creates a "sling:Folder" as a data container, under which all form values are set into properties. However, polls and comments are created as an entity(or node) under a container. A working example for comment is under "/content/usergenerated/content/geometrixx/en/blog/2009/02/shapecon_2009_inveg". All essential properties such as "cq:distribute", "cq:lastModified" are set correctly under this node. I tried to copy the idea of this example, but it never works for me.

 

Here's how I did.

1. I need to make a node as a "cq:Page", since reverse replication only works for this primary type. Let's name it "Page-1"

2. Create a "jcr:content" node under this node, make it as "cq:PageContent". I also set resourceType and template in "jcr:content". I need to make "Page-1" as a content page.

3. Create a data container under "cq:Page" node, make it "nt:unstructured". Let's name it "form_container". All form values are set into properties in this node. set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

4. Create a "jcr:content" node under "form_container", make it "nt:structured", set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

 

Obviously CQ doesn't know what I did and refuses to reverse replicate. Any help will greatly appreciate.

 

A finished upload will look like this:

 

/content

    /usergenerated

        /newsevent [cq:Page]

            /1351359963325_1 [cq:Page]

                |

                + form_content [cq:PageContent, cq:distribute==>true, and all form values stored as properties]

                |

                -- jrc:content [cq:distribute==> true, cq:lastModified==>Date Instance, cq:lastModifiedBy==>admin]

 

Kevin


Viewing all articles
Browse latest Browse all 12476

Trending Articles



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