fmeAG / fme-alfresco-extensions

Automatically exported from code.google.com/p/fme-alfresco-extensions
0 stars 1 forks source link

How can I set the default photos folder? #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm a beginner dev in alfresco and I've been asked to configure the dashlet 
such that it loads from a default folder within the repository. (The goal is 
that every new user added has the same gallery view)

Original issue reported on code.google.com by angeli...@gmail.com on 22 Apr 2013 at 1:43

GoogleCodeExporter commented 9 years ago
Make a copy of gallery-grid-dashlet.get.config.xml and place it in:

/shared/classes/alfresco/extension/site-webscripts/de/fme/components/dashlets/ga
llery-grid-dashlet.get.config.xml

Add the xml tag: <filterPath>/your/path/</filterPath>

That should be all. These values should be used as defaults in 
gallery-grid-dashlet.get.js (look there for the other properties).

Original comment by Florian....@gmail.com on 22 Apr 2013 at 1:53

GoogleCodeExporter commented 9 years ago
Tried using /Company Home/<folder name> as a test (folder display path 
retrieved from the js controller) but this didn't work. In what format should I 
specify this?

Original comment by angeli...@gmail.com on 29 May 2013 at 4:01

GoogleCodeExporter commented 9 years ago
You can either use a a nodeRef to specify a folder, e.g.
workspace://SpacesStores/47e32e908b23572a3572430572

or a so called "qnamePath" that you can find in the Alfresco nodeBrowser, like 
it is used in a lucene PATH query:

/app:company_home/cm:foldername/

Also see: http://wiki.alfresco.com/wiki/Search#Path_Queries

The best way to find the path is the Alfresco Node Browser in the admin console.

Original comment by Florian....@gmail.com on 29 May 2013 at 4:22

GoogleCodeExporter commented 9 years ago
can target the right folder with the following path: 
/app:company_home/cm:Galerie_x0020_Photo  and when I use the 
workspace://SpacesStore/879d98e4-c10b-4542-bccc-1e6714652039 format for the 
filterPath I get images from the right folder + the default images which comes 
with the extension which are then blown up to oversized porportions.

Original comment by angeli...@gmail.com on 9 Jul 2013 at 12:44

GoogleCodeExporter commented 9 years ago
There are no images coming with the extension. You probably mean the images 
that come with Alfresco in the "SWSDP" site. Some of those images are too 
small, that is why they are enlarged in the preview.

I don't understand if you still have an issue, can you post a screenshot to 
explain?

Original comment by Florian....@gmail.com on 9 Jul 2013 at 12:54

GoogleCodeExporter commented 9 years ago
I do. when I specify the filterpath in the qname format 
/app:company_home/cm:Galerie_x0020_Photo (which I get from the node navigator) 
Nothing is displayed, but when I use the workspaces store everything including 
what you have currently pinged as coming from the swsdp site is also displayed 
but the ones from the default site are Blown out here are two screen shots: 
http://imgur.com/O7UaxYN
http://imgur.com/O7UaxYN,IOOJHGy#1

but I only want images from the folder to be shown.

Original comment by angeli...@gmail.com on 9 Jul 2013 at 1:00