This dashlets takes the Site name as input, and performs a Google search, limiting the search to what has been indexed the last 5 days.
The use case is a Marketing manager creating a product launch site. To able to monitor what is said about your company or your product, the marketing manager ads a dashlet that lists all that has recently been indexed by google.
* Installing *
複製並粘貼文件到以下路徑
C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\dashlets
If you Share site is already started, go to http://localhost:8080/share/service/ and select 'Refresh Web Scripts', else start your Share application server.
* Included files *- Defintion of the dashlet, and that it is a site dashlet
googlesitenews.get.desc.xml
googlesitenews.get.head.ftl
- Loads the Google Search API by putting a script reference in the <head> section of the response html
googlesitenews.get.html.ftl
- Takes input googlesitenews.get.js and formats the html output. In this file you will find the Google script that format the tabs that are visible. Uncomment to add new tabs, comment to remove tabs. Move order in script to change display order.
googlesitenews.get.properties
- Change text here to change the Dashlet display name
googlesitenews.get.js
- Calculates the julian day, that Google requires to limit search for what has recently been indexed. Change here if you want more or less than 5 days in your index. Also retrieves the Site Name and puts this into model to be used later as a search parameter.

浙公网安备 33010602011771号