Alfresco Share网站文件库的小表 [英] Alfresco Share site's dashlet for document library

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

问题描述

我想知道是否存在任何可让您浏览网站文档库的小工具。据我所知,没有现成的小破折号,仅存在站点内容小折破折号,但略有限制。



我一直在搜索周围并搜索,我发现这些有用的资源对于我必须创建自己的资源可能是有用的起点:



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



http://code.google.com/ p / fme-alfresco-extensions / wiki / GalleryPlusDashlet2



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



作为一种临时解决方案,我还考虑通过利用 Web View破折号配置可检索的URL的可能性。 文档库 页面中的 文档列表 区域/组件。例如: share / page / components / documentlibrary / documentlist share / page / site / {site} / documentlibrary?region = documentlist 。也许这很疯狂,或者我的意思没有任何意义,但这只是一个主意。



我想到的另一个主意是创建自定义Surf / Share页面的选项,其中包含实现文档库浏览器的组件/网页脚本,特别是documentlist组件。然后,配置 Web视图破折号,提供指向所创建的自定义页面的URL。



预先感谢。

解决方案

嗨我做的完全一样,Dashlet并不是真正需要它,而是将一个站点的文档库嵌入到另一个站点的iframe中。



确实确实创建了一个新的页面模板Embedded-documentlibrary。



我首先复制了以下文件并将其重命名:


  1. site-data / pages / documentlibrary.xml

  2. site-data / template-instances / documentlibrary.xml

  3. site-webscripts / org / alfresco / documentlibrary.ftl

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



因此,为了只显示文档库而不是显示所有内容,我只是删除了< div id = alf- hd> 标签。



如果删除标记,则文档树也将被删除,并且出现了一些JavaScript错误。该问题应该在最新版本中得到修复,但还没有得到解决。



因此,创建自己的页面非常容易,而不必浏览到站点/文档库导航到站点/嵌入式文档库或您自己选择的名称。



是的,那么您需要使用网络视图仪表板来显示它。 / p>

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


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-alfresco-extensions/wiki/GalleryPlusDashlet2

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

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.

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?

Thanks in advance.

解决方案

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.

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

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

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

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.

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

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网站文件库的小表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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