【问题标题】:alfresco categories tree recursively露天分类树递归
【发布时间】:2023-03-06 18:06:01
【问题描述】:

我想在户外获取所有类别。我想要做的是一个函数,它返回存储库中所有类别的树(可能是递归的)并将其显示在类别管理页面中。

我想显示默认展开的树(使用 Yahoo javascript 库)

提前谢谢你。

我正在使用 alfresco 5.0.d

【问题讨论】:

  • 这不是现有的分类管理页面显示给你的吗?{host}/share/page/console/admin-console/category-manager
  • 是的,但我想列出所有类别而不需要任何 clic。

标签: recursion tree alfresco categories


【解决方案1】:

您需要更改类别管理器页面。 类别管理器(前端 javascript、Yahoo js 库)的代码在

alfresco\tomcat\webapps\share\components\console\category-manager.js

Css 样式在同一个目录中

提供数据的后端webscript在

alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\console\category-manager.get.js

提供 html 的 freemarker 模板可以在同一目录中找到。

【讨论】:

  • 我知道!但我想做的是一个函数 GetAllCategories() 从存储库返回所有类别。我在 alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\console\category-manager.get.js 中调用 GetAllCategories 并将显示所有这些(使用 Yahoo dom 库)。我的问题是如何做 GetAllCategories() ??
  • 你说得对,我也找不到那个网页脚本。但我认为添加一个为您执行此操作的 web 脚本会相当容易。像这样使用 lucene 搜索: var nodes = search.luceneSearch("PATH:\"/cm:generalclassifiable//*"); model.resultset = nodes; 此 javascript 代码将查找所有现有类别并使其可用于在 ftl 中返回.
猜你喜欢
  • 1970-01-01
  • 2012-03-18
  • 1970-01-01
  • 2013-08-04
  • 1970-01-01
  • 2020-05-04
  • 2012-07-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多