Please check if you have any WCMMode specified in your code.
Thanks Veena for the Suggestion.
Could u please elaborate what you want to suggest ?? As I am unable to understand the WCMMode ....
Actually I am new to CQ so if U and expain a lil bit it would be great....
When you start your different servers (Author and Publish) they get their runmodes. In your scripts, you can declare how the page should behave when it is viewed in WCM (Web Content Manager). That is controlled by the WCMMode (see ). The standard mode for a component in the WCM is EDIT. When you hit the preview button, it is set to PREVIEW. Inherited components have READ_ONLY.
Sometimes, it is adviced to have "default list" in a dropdown, populated by a static list, when you are in EDIT mode. That is to make the author environment more responsive, if the list is populated by other nodes, but not really usefull in the edit mode. When doing this, it is easy to forgett to have the normal rendering of the dropdown. Been there, done that.
One more thing. If your dropdown is populated by a query of another node (say using a JSON call), you must also remember to activate that content.
Thanks Ove Lindström for the Explaination , it is helpful.
I have Edit, preview and design mode.Also I am not using any query as such for populating the drop down.
So what I need to do next with this configuration could u please suggest Veena and Ove Lindström . So that we can take it forward to accomplish my task ie drop down is not published to the publish environment.
You can log into your publisher CRX, and check the following:
1. All of your codes are published properly, including jsp, js and css etcs.
2. Make sure your jsp or js file doesn't contain logic to run the codes only in author
Hopt it will help.
Actually, when Wei47 said that, make sure that you have replicated all your code to the publish node also. Might be as simple that you don't have the components needed to fill the dropdown.
Have you used WCMMode code?
This is in addition to what Wei47 has wrote already.
CQ publishes only the content on the page.
If your dropdown has hard coded values in the jsp than If you move all your component jsp files to the publisher instance, than your dropdown will be published with appropriate values.
Incase if you are dynamically generating the dropdown values, you should make sure the code for that dynamic rendering of dropdown values should be in publisher instance to get page published with all the drop down values.
CQ5 replicates only the content held by the component on the paragraph system.
Hi Ankita ,
Sorry for the late reply. Hope the above answers mght have given you little solution. Also can u make sure that your content which you want to show in publish is properly available. Just check the publish instances CRX and confirm that all the data which you are taking to display dropdown is availble in the publish also..