I create a new page property tab with additional tag property names, such as primary_category, secondary_category using cq/gui/components/coral/common/form/tagfield. Just wonder for this method from TagManager. find(String basePath, String[] tagIDs, boolean oneMatchIsEnough), will it know the primar...
Sorry, the correction answer should be @Model(adaptables = Resource.class)public class Sample {private final Logger LOG = LoggerFactory.getLogger(getClass());@InjectSlingHttpServletRequest request;@PostConstructprotected void init() {try {Resource articleResource = request.getResourceResolver().getR...
If I change the Article to adaptables to Resource.class, this line is fineArticle article = articleResource.adaptTo(Article.class)The Article.java code is changed to below, other parts are the same.@Model(adaptables=Resource.class)public class Article {}
In java code, I can do this:Resource articleResource = resourceResolver.getResource("/somepath/for/article"); Article article = articleResource.adaptTo(Article.class);Can Sightly do the same? and how?In AEM 6.3 with sling models.Thanks.
In AEM 6.3 /apps/core, there is a list component. Try to reuse this component and just overwrite the item.html to make a news listing component.I have a news component with title, date, content and News.java (using sling models: adaptables = SlingHttpServletRequest.class). A list component lists al...