Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Content will not be displayed

Avatar

Level 2

HI,

The aem created page is finely working with edit mode, but while i am trying it to switch in preview mode so few of content  and component will not be displayed.

Thanks 

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

There is similar problem posted in stackoverflow, Please have a look at the same :- http://stackoverflow.com/questions/29379169/aem-component-not-displayed-on-preview-mode

//The problem found out be be in their custom code.

comment from the post :- 

I was using Column Control (sightly version) as a guide and figured out that the following code was what was causing the issue:

if (typeof wcmmode != "undefined" && wcmmode.isEdit())

Thank you for helping me debug this issue.

 

you will be getting something in log file when you go to preview mode. can you share the error?

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi 

There is similar problem posted in stackoverflow, Please have a look at the same :- http://stackoverflow.com/questions/29379169/aem-component-not-displayed-on-preview-mode

//The problem found out be be in their custom code.

comment from the post :- 

I was using Column Control (sightly version) as a guide and figured out that the following code was what was causing the issue:

if (typeof wcmmode != "undefined" && wcmmode.isEdit())

Thank you for helping me debug this issue.

 

you will be getting something in log file when you go to preview mode. can you share the error?

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni