활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hello AEM community,
I'm new to AEM and I want to know if there is a way to identify if the current view is on mobile or desktop on code level(methods or properties on AEM that I can use to identify) without using the viewport. I'm creating Image component that the author can use 2 images for desktop and mobile option. Thank you !
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
If you are wanting to do it in CSS code, used media-queries. You should not check it in the backend due to caching issues.
Similar post: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-3-to-detect-from-des...
Thanks,
Kiran Vedantam.
You can use the small devices icon on top of every page on edit mode to move from desktop to devices
Hope this helps.
Thanks,
Kiran Vedantam.
Thank you for that. What I mean is on code level. Is there method or properties that I can use in AEM ?
If you are wanting to do it in CSS code, used media-queries. You should not check it in the backend due to caching issues.
Similar post: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-3-to-detect-from-des...
Thanks,
Kiran Vedantam.
@AEMStarterNewbie Please check below community thread for similar ask: