34. Creating Complex navigation component using javascript helper in AEM
Creating Complex navigation component using javascript helper in AEM(Javascript Use-Api): This video shows how to create a complex navigation component in AEM using javascript helper.
Navigation is a horizontal menu at the top of the page that provides links to navigate to a specific page in the site.
Having navigation feature is very common in the website, therefore creating navigation component is important task you can do as a aem developer.
Typicall, the top navigation is the same on all pages. But in simple navigation it was changing on every page and display no items when the pagge has no children.
We will use data-sly-use and data-sly-repeat attributes to build up it's logic. You can refer below url to find the code :
https://github.com/pankajchhatri/AEM
We are using Javascript Use-API in this video.
Use-API has some common variables available right off the bat.
currentNode
currentPage
resource
log
sling
pageProperties
properties
pageManager
component
designer
currentDesign
currentStyle
Using currentPage object we are calling getAbsoluteParent() method to build up our logic.
After doing it open the English page, navigation will appear there. Every page will show the same navigation items now even if the page has no children item.
share, support, like and subscribe
Subscribe : https://www.youtube.com/channel/UC5Lc...
LinkedIn : https://www.linkedin.com/in/pankaj-ch...
Facebook : https://www.facebook.com/pankajchhatri
Twitter : https://twitter.com/pankajchhatri
Google plus : https://plus.google.com/u/0/+pankajch...
About : AEM/CQ5 tutorial is a youtube channel which helps you to learn AEM concepts theoretically as well as practically.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «34. Creating Complex navigation component using javascript helper in AEM», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.