Dynamic Dashlet in Alfresco Share

狂风中的少年 提交于 2019-12-25 03:38:11

问题


As a user experience requirement, I need to create a dynamic dashlet.

According to what I need, a dynamic dashlet would be a special dashlet that can load inside "almost every content". I say almost every content because of course this kind of dashlet would have its own limits of course. At the same time, it would be nice that the dynamic dashlet has the ability of being maximized, what in fact would show the real content (for example, an Alfresco page).

Perhaps my question is ambiguous, but the intention to give the user the chance of check execute common functionality inside that special dashlet, this way the user doesn't have to leave the dashboard improving the user experience as a consequence.

Did anybody have had such requirement or similar before? Would that be possible to do?

I would like to know some tips and suggestions in order to find out the right approach.

Thanks in advance.


回答1:


You could try re-using the webview Dashlet which can also show another page.

The only problem is that not every part which is visible in Share can be accessed via url. Sure the template gets build up by regions of *.ftl's but that doesn't mean you can 'just' view the *.ftl.

The only 'dynamic' thing I see is making a custom page template which shows one or couple of regions which are dynamically build by the url.

e.g. pointing to share/page/customPage?region1=documentlibrary should insert the documentlibrary template within that page and thus it can be shown within the iFrame of the webview Dashlet.

Actually the documentlibrary is a bad example, because there is already a portletMode available for Liferay. But hopefully you'll get my point.



来源:https://stackoverflow.com/questions/12973535/dynamic-dashlet-in-alfresco-share

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!