【发布时间】:2015-05-22 14:42:29
【问题描述】:
我想打印或导出所有尚未填充具体属性的页面,但我想做一个“调试”CSElement 打印所有指示类型的元素(在本例中 -> 页面)具有所有属性,任何可以帮我解决这个问题吗?
【问题讨论】:
标签: oracle webcenter webcenter-sites fatwire
我想打印或导出所有尚未填充具体属性的页面,但我想做一个“调试”CSElement 打印所有指示类型的元素(在本例中 -> 页面)具有所有属性,任何可以帮我解决这个问题吗?
【问题讨论】:
标签: oracle webcenter webcenter-sites fatwire
你可以查询表Page和PageAttribute来得到你想要的。像这样使用标签 ics:sql:
<%
String your_query = "select * from Page,PageAttribute";
String result_list= "";
%>
<ics:sql sql='<%= your_query %>' table="Page,PageAttribute" listname="result_list"/>
<ics:if condition='<%=ics.GetList("result_list")!=null && ics.GetList("result_list").hasData()%>'><ics:then>
<ics:listloop listname="result_list">
<ics:listget listname="result_list" fieldname="name" output="result"/>
<% result_list+= " '"+ics.GetVar("result")+"' ,"; %>
</ics:listloop>
</ics:then></ics:if>
【讨论】:
虽然回答了这个问题,但我会建议使用 WebCenter Sites 标签或 Asset API 来获取值。要获取资产的所有属性,请查看以下博客文章:http://fatwirecode.blogspot.in/2015/07/get-full-asset-details.html
此外,如果你想限制,那么你可以先使用 SQL 找到所有页面资产,然后遍历每个页面,然后使用上面链接中提到的标签或资产 api 显示所有信息。
【讨论】:
您可以使用以下代码获取资产的所有详细信息。 click here for code 使用资产加载标签加载资产 分散资产 通过使用枚举,您可以获得该资产的所有详细信息。您可以在附图中找到详细代码。
【讨论】: