Extending Text & Image component is not working. | Community
Skip to main content
October 16, 2015
Solved

Extending Text & Image component is not working.

  • October 16, 2015
  • 4 replies
  • 1548 views

Hi,

    I am new to AEM, now i am doing the excercise of extending Text & Image componenet. I have performed everything that has been discussed in url "http://docs.adobe.com/content/docs/en/cq/current/getting_started/first_steps_for_developers.html" but i am not seeing the "left" "right" option in the Tab 3 (i.e. in Advance Image Properties tab) under "Image Position" drop down box.

For node position/options/o1 i set the properties as : text to Left and value to left ; its type is nt:unstructured

For node position/options/o2 i set the properties as : text to Right and value to right ; its type is nt:unstructured             

Let me know what could have went wrong here. When i select the drop down box in the design mode it doesn't have any option present.

Attached the screen shot for your reference.

 

regards

Sri.

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 vdhim23

Sriram Sundararajan wrote...

Hi,

     Thanks for you reply. If you see my screenshot i have given for o1 [Name-->Left&value-->left] similarly i have entered the properties for o2 also. But one thing i am not understanding here, i am not seeing any field as 'text' here. Did you mean 'Name' as 'text' ? Please refer my screenshot attached earlier whether the settings are right, if not let me know what changes need to be done.

    I am also attaching the screenshot of the new component. The drop down box Image Position doesn't populating any options.

 

 

No, For o1, set the first property "text" which has value "Left" and second property "value" which has value "left". Not mention any property "Name" that you are doing now.

4 replies

October 16, 2015

Your options o1, o2 should have the properties text,value. e.g. o1[text-->Left & value --> left] . Also i didn't get you open the dialog in design mode, Is that component configurable at design mode and are getting save under /etc/design. As in image i can see you dialog is not design_dialog.

October 16, 2015

Hi,

     Thanks for you reply. If you see my screenshot i have given for o1 [Name-->Left&value-->left] similarly i have entered the properties for o2 also. But one thing i am not understanding here, i am not seeing any field as 'text' here. Did you mean 'Name' as 'text' ? Please refer my screenshot attached earlier whether the settings are right, if not let me know what changes need to be done.

    I am also attaching the screenshot of the new component. The drop down box Image Position doesn't populating any options.

vdhim23Accepted solution
October 16, 2015

Sriram Sundararajan wrote...

Hi,

     Thanks for you reply. If you see my screenshot i have given for o1 [Name-->Left&value-->left] similarly i have entered the properties for o2 also. But one thing i am not understanding here, i am not seeing any field as 'text' here. Did you mean 'Name' as 'text' ? Please refer my screenshot attached earlier whether the settings are right, if not let me know what changes need to be done.

    I am also attaching the screenshot of the new component. The drop down box Image Position doesn't populating any options.

 

 

No, For o1, set the first property "text" which has value "Left" and second property "value" which has value "left". Not mention any property "Name" that you are doing now.

October 16, 2015

Hi,

     It is so simple how come i missed it ? thanks for clarifying it is working now.