Expand my Community achievements bar.

SOLVED

Preload parsys with components

Avatar

Level 4

Am doing preload parsys with components.

I copied etc/design/geometrix/jcr:content and i created my own project name under etc/design/example/ and i pasted jcr:content from geometrixx.

am getting values that time, because parsys names are par and parsys over there, if i change parsys name to my own am not getting vales in side-kick.

Please help me, if am doing any thing wrong.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Thanks guys for the support.

problem got fixed.

View solution in original post

3 Replies

Avatar

Level 4

If I understand your question correctly, you are trying to populate the Sidekick with the component list from Geometrixx.  Yes?
The design's jcr:content should have a node matching the name of your page component, and that should have a node matching the name of your parsys component.

Please post the .content.xml for your design, and we can help determine the problem.

Alternatively, if you open your page in design mode, you can open the design dialog for your parsys and select the components that you want to support.  This will build a valid configuration for your design, which you could then modify (change the components property).

Avatar

Level 4

Am not trying to populate sidekick from Geometrixx, i need to do same like that in  my project.

We created some templates, we need to load components in sidekick, in general we will go to design mode and select components from there, but now we decide to load components automatically.

I referred in google, they routed to see example in geometrixx, i tried but am failing to achieve result.

i created my design under etc/design/myproject/jcr:content/mytemplate/parsys name in crxde.

myproject -- cq:page, jcr:content -- nt:unstructred, mytemplate--cq:page and Parsys -- nt:unstructured.

Here is my content.xml

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="cq:Page">
    <jcr:content
        cq:doctype="html_5"
        cq:lastModified="{Date}2015-07-28T11:08:13.329-04:00"
        cq:lastModifiedBy="admin"
        jcr:primaryType="nt:unstructured"
        jcr:title="My project design"
        sling:resourceType="wcm/core/components/designer">
        <s jcr:primaryType="nt:unstructured">
            <par
                jcr:lastModified="{Date}2015-07-28T11:08:13.329-04:00"
                jcr:lastModifiedBy="admin"
                jcr:primaryType="nt:unstructured"
                sling:resourceType="foundation/components/parsys"
                components="[/apps/geometrixx/components/reference]"/>
             </s>
       </jcr:content>
</jcr:root>

S is my template name, i gave parsys name as "par" in my template jsp, am getting all the values form Geometrix.

If i change my parsys name to my "own" my sidekick is empty.

Under s template, par-- i gave components as my own, but it's not reflecting there.

Avatar

Correct answer by
Level 4

Thanks guys for the support.

problem got fixed.