用于文档库的 Alfresco Share 站点的 dashlet [英] Alfresco Share site's dashlet for document library

查看:18
本文介绍了用于文档库的 Alfresco Share 站点的 dashlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否存在允许您浏览站点文档库的任何 dashlet.据我所知,不存在这种开箱即用的 dashlet,只有站点内容"dashlet,但它略有限制.

I was wondering whether exists any dashlet which allows you to explore a site's document library. As far as I know doesn't exist such dashlet out of the box, there only exists the "Site Content" dashlet but it is slightly limited.

我一直在四处搜索和谷歌搜索",我发现了这些有用的资源,如果我必须创建自己的资源,它们可以作为一个有用的起点:

I have been searching around and "googling" and I found these useful resources that could be useful as a starting point if I had to create my own:

http://ecmarchitect.com/archives/2012/05/08/1592

http://code.google.com/p/fme-户外扩展/wiki/GalleryPlusDashlet2

有人知道更多针对此问题的 dashlets/资源吗?有什么建议吗?

Do somebody know more dashlets/resources targeting this issue? Any suggestion?

作为一个临时解决方案,我也在考虑利用Web View"dashlet 的可能性,通过在其中配置这样的 URL 来检索 documentlist documentlibrary 页面中的区域/组件.例如:share/page/components/documentlibrary/documentlistshare/page/site/{site}/documentlibrary?region=documentlist.也许这很疯狂,或者我所说的没有任何意义,但这只是一个想法.

As a temporary solution, I'm also thinking in the possibility of taking advantage of the "Web View" dashlet, by configuring in it such URL that retrieves the documentlist region/component in the documentlibrary page. For example:, share/page/components/documentlibrary/documentlist or share/page/site/{site}/documentlibrary?region=documentlist. Maybe it is crazy or what I'm saying doesn't make any sense, but it is just an idea.

我刚刚想到的另一个想法是创建自定义冲浪/共享页面的选项,其中包括实现文档库资源管理器的组件/网页脚本,特别是文档列表组件.然后配置Web 视图"dashlet,提供指向创建的自定义页面的 URL.有意义吗?

Another idea that have just came to my mind is the option of creating a custom Surf/Share page which includes the component/webscript that implements the explorer of the document library, specifically the documentlist component. Then configure the "Web View" dashlet giving the URL that points to the custom page created. Would it make sense?

提前致谢.

推荐答案

我已经做了完全相同的事情,Dashlet 并不是真正需要它,而是将站点的文档库嵌入另一个站点的 iframe 中.

Hi I've done exactly the same, it was not really needed for a Dashlet but for to embed the documentlibrary of a site in an iframe for another site.

所以我所做的确实是创建了一个新的页面模板embedded-documentlibrary.

So what I did was indeed create a new page template embedded-documentlibrary.

我首先复制了以下文件并重命名了它们:

I've copied first the following files and renamed them:

  1. site-data/pages/documentlibrary.xml
  2. site-data/template-instances/documentlibrary.xml
  3. site-webscripts/org/alfresco/documentlibrary.ftl

如果重命名文件 3 或将其放在另一个文件夹中,则需要检查文件 1 中的路径 &2.

If you rename file 3 or put it in another folder, you need to check the paths in file 1 & 2.

所以为了只显示文档库而不是所有内容,我只是删除了 <div id="alf-hd"> 标签内文件 3 中的所有内容.

So to make only the documentlibrary appear instead of everyting I just removed everything in file 3 within the <div id="alf-hd"> tag.

如果您删除标签,文档树也将被删除,并且会出现一些 javascript 错误.这应该在最新版本中修复,但尚未绑定.

If you remove the tag, the document-tree will also be removed and it gave some javascript errors. This should be fixed in the latest version, but haven't tied that.

因此,创建自己的页面非常容易,无需导航到站点/文档库,您只需导航到站点/嵌入式文档库或您选择的自己的名称即可.

So it's extremely easy to create your own page and instead of navigating to site/documentlibrary you just navigate to site/embedded-documentlibrary or your own name you've chosen.

是的,那么您需要使用网络视图 Dashlet 来显示它.

And yes then you'll need to use the web-view Dashlet to show it.

您唯一需要知道的是,链接在 iframe 中打开.因此,如果您使用网络视图 Dashlet,则需要在新窗口中打开链接.对于我的情况,我需要一个 iframe,在您的情况下,您也可以让 Dashlet 中的 freemarker 呈现所需的组件.

The only thing you need to know is, that the links open within the iframe. So if you use the web-view Dashlet, you need to open the links in a new window. For my situation I needed an iframe, in your case you could also just let the freemarker from your Dashlet render the components needed.

这篇关于用于文档库的 Alfresco Share 站点的 dashlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆