Код: Выделить всё
Код: Выделить всё
package com.project.core.models;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.DefaultInjectionStrategy;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.ChildResource;
import java.util.Collections;
import java.util.List;
@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class TabsAndContentModel {
@ChildResource
private List tabsGroup;
@ChildResource
private List contentGroup;
public List getTabsGroup() {
return Collections.unmodifiableList(tabsGroup);
}
public List getContentGroup() {
return Collections.unmodifiableList(contentGroup);
}
}
Код: Выделить всё
[list] aria-multiselectable="false">
[*] tabindex="0" data-tab-index="0">${b.titleTab}
[/list]
${cardData.titleBlock}
All
2024
2023
2022
2021
2020
2019
[img]${cardData.image}[/img]
${cardData.name}
Заранее спасибо
Подробнее здесь: https://stackoverflow.com/questions/789 ... eld-on-aem