|
TagQueryDashlet_4x
This wiki pages describes the Tag Query Dashlet for Alfresco 4.x wiki page of the Alfresco 3.4.x version compliant dashlet: Tag Query Dashlet for Alfresco 3.4.x Tag Query Dashlet for Alfresco ShareAuthor: Jan Pfitzner (alfrescian.com & twitter.com/alfrescian) This project defines a tag query document dashlet for the Alfresco Dashlet Challenge 2011. The dashlet displays a list of documents that are tagged with a configurable tag. version 0.3.1 also displays tagged folders FeaturesDashlet now uses the new Alfresco 4.x Dashlet layout/features: Following features are implemented:
Repository Web-Script changesTo reuse the tag-picker control in the dashlet configuration dialog the repository webscript controller org/alfresco/repository/forms/pickeritems.post.json.js gets a small modification. It now support a text-based tag as parameter & not only a nodeRef-based tag param. Browser support
InstallationThe component has been developed to install on top of an existing Alfresco 4.0.b (Community) You need to copy the tag-query-dashlet.jar to tomcat/shared/lib. Using the dashletPlease do the following steps to get the dashlet running:
Return to your site dashboard & click the configure/edit icon in the dashlet header to open the configuration dialog of the dashlet:
Once configured your dashlet should look like this:
RoadmapFollowing features are on the roadmap:
powered by fme |
How can the listing be changed to output folders as well as docs? Also a change to have the output list have one line per item would result in a dynamic table of contents for all items tagged with some thing such as "toc".
I am rather new to Alfresco (1 week so far) so not familiar with the tables, globals, directories, etc., but looking at the source in "/source/web/components/dashlets/documentsForTag.js" I can see part 2 of the above could be achieved by: comment out line #210 to remove the thumbnail comment out line #444 to remove the date line
The the first part of above is not so simple (perhaps) but I will try changing line #207 of the same file from: container: this.id + "-documents", to: container: this.id + "-folders",
This may swap the output from documents only to folders only, but the ideal would be to have both folders and documents in the output.
I will try the mods and build with ant and will see.
The part of reducing the list to single-line entries through commenting out line #210 and #444 of /source/web/components/dashlets/documentsForTag.js (Rev r92) works.
However, I was merely guessing at how to get the list to output folders rather than only documents. Will keep looking but would appreciate some guidelines if anyone can assist.
If this is successful, perhaps adding user configurable settings to enable these features would be good. The dashlet could then be used together with an automatic rule to add the tag 'toc' to all folders to create a clickable dynamic table-of-contents for the site's documents.
Hmm, looking at line 490 and 516 it appears the dashlet should be showing folders in the output list after all. Is this a bug? I will submit a bug report on the matter just in case.
Support of tagged folders was recently added in version 0.3.1