English 中文(简体)
查阅档案 - 开放式电脑
原标题:Looping over files - OpenCMS
  • 时间:2010-03-19 09:45:36
  •  标签:
  • opencms

I m 开发一个使用开放式计算机监测系统的网站,在建立与我使用厘米的文档链接方面遇到问题:连续载荷:

  <cms:contentload collector="allInFolder" param="faqs/|FaqFile" editable="false">
     <b><a href="${opencms.filename}"><cms:contentshow element="Title" /></a></b><br />
  </cms:contentload> 

这是指数的一部分。 不幸的是,所有链接都会导致指数化。 你们是否知道如何改变这种状况,以便它能够发挥预期的作用?

Thanks, John

最佳回答

这实际上是一种更好的(现在建议)方式:

<cms:contentload collector="allInFolder" param="faqs/|FaqFile" editable="false">
   <cms:contentaccess var="faqfiles" />
   <b><a href="<cms:link>${faqfiles.filename}</cms:link>"><c:out value="${faqfiles.value[ Title ]}" /></a></b><br />
</cms:contentload>
问题回答

最后,我通过将联系改变为:

<a href="<cms:link><cms:contentshow element="%(opencms.filename)" /></cms:link>">

它现在工作。

在公开场合,如果你想要与你通过<<<><>>cms:link包围它的任何资源联系起来,那么:

<cms:link>resource path</cms:link>

你们也可以通过开放式新闻稿这样做:

<jsp:useBean id="cms" class="org.opencms.jsp.CmsJspActionElement">
<% cms.init(pageContext, request, response); %>
</jsp:useBean>
<% **String link = cms.link(resource path)** %>




相关问题
integrating WebApplication and OpenCms

Hey I just want to integrate already existing application with OpenCms Contents.Let me explain a example:i have an application like Demo.war now i want to integrate sreekanth.war and OpenCms how can i ...

Filesystem-based web content

I plan to pull my Java web apps s content from a filesystem, for the sake of simplicity of editing. These files will be most probably only a text in a simple markup like JTexy or Markdown. What I ...

查阅档案 - 开放式电脑

I m 开发一个使用开放式计算机监测系统的网站,在建立与我使用厘米的文档链接方面遇到问题:连续载荷:

如何从Java Web应用程序中访问WEB-INF下的文件

你知道如何从我的应用程序中访问WEB-INF/index文件夹中的文件吗?我正在使用OpenCMS进行应用程序开发,我想打开一个Lucene搜索索引(借助Lucene IndexReader...)。

CMS for plain HTML website [closed]

Hello I got a website with around 5-6 pages (plain html). There are areas in these pages where I need to update occassionally. Is there any free / opensource CMS to maintain these editable areas of ...

OpenCms and MySQL configation: max_alllowed_packed

I have installed OpenCms on my local machine and it works perfectly fine. But in order to work it correctly it is mentioned that i have to modify the my.ini file and set max_alllowed_packed site to 32 ...

OpenCMS - 301 redirect

Is there any easy way to configure permanent redirects (301) on openCMS? I would like to forward some of my old page urls to their new location. Thanks

热门标签