Adaptave image is not showing up unless you’re logged in. | Community
Skip to main content
Level 2
October 16, 2015
Solved

Adaptave image is not showing up unless you’re logged in.

  • October 16, 2015
  • 7 replies
  • 2303 views

I'm using an adaptave image in it, but it’s not showing up unless you’re logged in.That is, if you log into an author or publish instance, you can see the image.If you’re not logged in, it doesn't display.

So, on the dispatcher (where you can’t log in), you can’t see the image.

 

What could be an issue ?

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 Sham_HC

Just to be clear I am checking if it is enabled [1] & not asking to enable ok.... 

On publish instance you can check directly at [2] & see if assets are listed.

[1]  http://www.wemblog.com/2013/01/how-to-associate-cug-with-dam-asset-in.html

[2]  http://<host>:<port>/system/console/cug

7 replies

Sham_HC
Level 10
October 16, 2015

Looks like permission issue.  You have CUG enabled on the assets referenced in image component?

Level 2
October 16, 2015

Wow, the thing that says "Solved" looks awesome, but doesn't answer the question.  I just suffered from the same problem.  Here's my actual working solution.

What's causing the problem:

If you look at the developer tools (Chrome) or firebug or something, you'll see that there's a .js library to which you do not have permission.  The reason for this is that the clientlibs for this and many many other components are not available to anonymous users.  Superfantastic if you're trying to author public web pages.

Here's how I fixed it:

In CRXDE, copy the clientlibs node under the component you need access to (right click, copy).  Under /etc/clientlibs, select "paste", and then rename the node to the name of the component you're exposing.  In this case, rename it to adaptiveimage.  Throw a "save all" at CRXDE for fun.

Hope that helps!  I can't see how the other answers here could have, but someone marked this as "Solved".  If anyone can explain how adding a Closed User Group to some assets in the DAM can resolve a permission issue with javascript, let me know.

Adobe Employee
October 16, 2015

Hi Steve,

A more idiomatic solution, which didn't require copying would be to embed the cq.adaptiveimage client library into your site's client library.

HTH,

Justin

rupi123Author
Level 2
October 16, 2015

How to enable Closed User group (CUG)?

Level 2
October 16, 2015

Hey there!

That sounds really promising, and very different from what your support guys told me (which was to "put" the foundation clientlib into /etc/designs - that sounded like a terrible idea).

As you can tell, I'm a complete AEM novice. Can you tell me what it means in AEM terms to "embed" one client library into another?  Basically, it sounds like you're advocating a reference of some sort, which is exactly what I'm looking for, but I'm not sure how to express it within CQ5.

Thanks much!

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Just to be clear I am checking if it is enabled [1] & not asking to enable ok.... 

On publish instance you can check directly at [2] & see if assets are listed.

[1]  http://www.wemblog.com/2013/01/how-to-associate-cug-with-dam-asset-in.html

[2]  http://<host>:<port>/system/console/cug

Adobe Employee
October 16, 2015

Hi,

When a client library embeds another library, it does just that -- embeds the content (JavaScript and/or CSS) of the embedded library. It's actually a bit fancier in that paths in CSS files (for example to background images) are actually rewritten so that they are relative to the embedding library (rather than the original path which would have been relative to the embedded library). You might want to take a read through http://dev.day.com/docs/en/cq/current/developing/clientlibs.html which does a reasonable job of laying out the whole client library system.

Regards,

Justin