For Dialog Values Defaultily | Community
Skip to main content
New Participant
January 14, 2016
Solved

For Dialog Values Defaultily

  • January 14, 2016
  • 4 replies
  • 1728 views

Hello,

 

I was Developed a component on that component i am providing values through dialog like defaultValue property 

My problem is when i was drag and drop from sidekick to parsys, The default values are not apply by defaultly when component drag and drop, in edit bar of that component when click and without changing any values am clicking ok that time the design is working fine

Please tell me the solution............ 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

For this use case you need to create a node cq:template of the type nt:unstructured under your component.  Please go through the following blog for more details - 

http://blogs.adobe.com/experiencedelivers/experience-management/defaults-in-your-component/

4 replies

brahma_RAuthor
New Participant
January 16, 2016

Hello kunal23,

 

Thanks Man, It's really working fine...........

Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
January 14, 2016

For this use case you need to create a node cq:template of the type nt:unstructured under your component.  Please go through the following blog for more details - 

http://blogs.adobe.com/experiencedelivers/experience-management/defaults-in-your-component/

brahma_RAuthor
New Participant
January 14, 2016

am using sightly

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root 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:Dialog"
    helpPath=""
    title="Search Footer"
    xtype="panel">
    <items jcr:primaryType="cq:WidgetCollection">
        <heading
            jcr:primaryType="cq:Widget"
            allowBlank="false"
            defaultValue="Can't find what you're looking for?"
            fieldDescription="Provide Headline for this Section."
            fieldLabel="Headline Title"
            maxLength="140"
            name="./jcr:headline"
            xtype="textfield"/>
        <searchfield
            jcr:primaryType="cq:Widget"
            allowBlank="false"
            defaultValue="Search by Keyword, Title/Author Item #, ISBN"
            fieldDescription="Provide Search Field for this Section."
            fieldLabel="Search Field"
            maxLength="140"
            name="./jcr:searchfield"
            xtype="textfield"/>
        <cliffimage
            jcr:primaryType="cq:Widget"
            allowBlank="false"
             defaultValue="/content/dam/scholastic/teachers-ecommerce/image/searchdog.png"
            fieldDescription="Please upload or select image from the DAM."
            fieldLabel="Clifford Image"
            name="./jcr:cliffimage"
            rootPath="/content/dam/scholastic/teachers-ecommerce/image"
            xtype="pathfield"/>       
        <selectList
            jcr:primaryType="cq:Widget"
            allowBlank="false"
            defaultValue="teachersLookingFor"
            fieldLabel="Style for Page ?"
            name="./styleOfPage"
            type="select"
            xtype="selection">
            <options jcr:primaryType="cq:WidgetCollection">
                <one
                    jcr:primaryType="nt:unstructured"
                    text="Teachers"
                    value="teachersLookingFor"/>
                <two
                    jcr:primaryType="nt:unstructured"
                    text="Parent"
                    value="2"/>
                <three
                    jcr:primaryType="nt:unstructured"
                    text="Administrator"
                    value="administratorLookingFor"/>
                <four
                    jcr:primaryType="nt:unstructured"
                    text="Partner"
                    value="partnerLookingFor"/>
            </options>
        </selectList>
    </items>
</jcr:root>

edubey
New Participant
January 14, 2016

Can you share the dialog.xml for your component.

You are using sightly or jsp?