META-INF.resources.WEB-INF.Views.TridionDocsMashup.Entity.DynamicWidget.jsp Maven / Gradle / Ivy
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.sdl.dxa.modules.docs.mashup.models.widgets.Topic" %>
<%@ page import="java.util.List" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="dxa" uri="http://www.sdl.com/tridion-dxa" %>
<%@ taglib prefix="xpm" uri="http://www.sdl.com/tridion-xpm" %>
<%
List topics = entity.getTopics();
if(topics!= null && topics.size() > 0)
{
String lastId = topics.get(topics.size() - 1).getId();
for (Topic topic : topics)
{
if(entity.getDisplayContentAs().toLowerCase().equals("embedded content"))
{
%>
<%
}
else
{
%>
<%
}
if (!topic.getId().equals(lastId))
{
%>
<%
}
}
}
else
{
%>
<%
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy