标签liferay中的多个链接

发布于 2025-02-04 07:17:40 字数 422 浏览 3 评论 0原文

在数据库中,我有链接,该链接是一个实体的属性,保存在字符串上,仅由逗号分隔。示例:“ www.test.com, www.test.com ,www.test.com”。

我可以使用此代码看到它们,但它们不是可单击的链接< liferay-ui:search-container-column-text name =“ links“ orderable =”< lt;%= false%>'' value =“<%= entity.getLinks()%>“/>

我可以在a< liferay-ui中显示它们:search-container-collount-text标签吗?

in the database I have links, which are a property of an entity, saved on a string, separated only by a comma. Example: "www.test.com, www.test.com, www.test.com".

I can see them with this code but they are not clickable links <liferay-ui:search-container-column-text name="Links" orderable="<%=false%>" value="<%=entity.getLinks() %>"/>

Can I display them to be clickable in a <liferay-ui: search-container-column-text tag?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见终念 2025-02-11 07:17:40

尝试这样的事情:

 <liferay-ui:search-container-column-text name="Links" orderable="<%=false%>">
    <%
        String[] links = StringUtils.split(entity.getLinks());
    
        for (String link : links) {
    %>
        <a href="<%= link %>"><%= link %></a>
    <%
        }
    %>
    </liferay-ui:search-container-column-text>

Try somethings like that:

 <liferay-ui:search-container-column-text name="Links" orderable="<%=false%>">
    <%
        String[] links = StringUtils.split(entity.getLinks());
    
        for (String link : links) {
    %>
        <a href="<%= link %>"><%= link %></a>
    <%
        }
    %>
    </liferay-ui:search-container-column-text>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文