Multiple smartimage widgets in a component dialog


is there way have multiple smartimage widgets in single dialog? i'm struggling requestsuffix parameter. of other ones can adapt second widget save info different location first, can't see how requestsuffix. if values same both widgets, once image selected, see same image in both tabs of dialog. if change /image2.img.png, it's no longer hitting component resource. if change .image2.img.png, script handling selector appears break. might able change script, doesn't seem it'll flexible approach.

 

any other options? i'm in cq 5.4 if matters.

joel,

 

good question. using multiple image in dialog kind of complicated can done. not sure how use them in multifield (love here if has done using ootb xtype). here example of using mutiple image in dialog

 

<items jcr:primarytype="cq:widgetcollection">

        <tab1

            jcr:primarytype="cq:widget"

            title="settings"

            xtype="panel">

            <items jcr:primarytype="cq:widgetcollection">

                <restype1

                    jcr:primarytype="cq:widget"

                    ignoredata="{boolean}true"

                    name="./image1/sling:resourcetype"

                    value="foundation/components/image"

                    xtype="hidden"/>

                <restype2

                    jcr:primarytype="cq:widget"

                    ignoredata="{boolean}true"

                    name="./image2/sling:resourcetype"

                    value="foundation/components/image"

                    xtype="hidden"/>

</tab1>

 

<tab2

            jcr:primarytype="cq:widget"

            cropparameter="./image1/imagecrop"

            ddgroups="[media]"

            filenameparameter="./image1/filename"

            filereferenceparameter="./image1/filereference"

            mapparameter="./image1/imagemap"

            name="./image1/file"

            requestsuffix="/image1.img.png"

            rotateparameter="./image1/imagerotate"

            sizelimit="100"

            title="frame image"

            xtype="html5smartimage"/>

        <tab3

            jcr:primarytype="cq:widget"

            cropparameter="./image2/imagecrop"

            ddgroups="[media]"

            filenameparameter="./image2/filename"

            filereferenceparameter="./image2/filereference"

            mapparameter="./image2/imagemap"

            name="./image2/file"

            requestsuffix="/image2.img.png"

            rotateparameter="./image2/imagerotate"

            sizelimit="100"

            title="lightbox image"

            xtype="html5smartimage"/>

 

and edit config drop target this,

 

<cq:droptargets jcr:primarytype="nt:unstructured">

        <image

            jcr:primarytype="cq:droptargetconfig"

            accept="[image/.*]"

            groups="[media]"

            propertyname="./image1/filereference">

            <parameters

                jcr:primarytype="nt:unstructured"

                sling:resourcetype="foundation/components/image"

                imgalignment="left">

                <image2

                    jcr:primarytype="nt:unstructured"

                    sling:resourcetype="foundation/components/image"

                    imagecrop=""

                    imagemap=""

                    imagerotate=""/>

                <image1

                    jcr:primarytype="nt:unstructured"

                    sling:resourcetype="foundation/components/image"

                    imagecrop=""

                    imagemap=""

                    imagerotate=""/>

            </parameters>

        </image>

    </cq:droptargets>

 

 

yogesh



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support