Page 1 of 1

Starting OpenKM with specific folder

PostPosted:Wed Nov 25, 2009 3:00 pm
by jeppe
Can I start OpenKM, so that I the URL indicates which folder to start with?

something like this:
http://localhost:8080/OpenKM/es.git.ope ... editor/me/

Any help would be appreciated.
/Jeppe

Re:Starting OpenKM with specific folder

PostPosted:Thu Nov 26, 2009 11:26 am
by jllort
It can be configured by each user. If you go to contextual menus - right click - you can set there the default home ( could be a document too ). OpenKM at starting will open all folders structure to final location.

Re:Starting OpenKM with specific folder

PostPosted:Thu Nov 26, 2009 1:15 pm
by jeppe
I was aiming at something more flexible. Say one time you want to start in folder A, and the next time to start in folder BB.
The exact folder depending on path/adress/... given in the URL. - Is this possible?

Folder A
-Folder AA
Folder B
-Folder BA
-Folder BB

Re:Starting OpenKM with specific folder

PostPosted:Wed Dec 02, 2009 7:52 am
by jeppe
I have found the following in frontend/client/Main.java:
Code: Select all
	public void onModuleLoad() {

...

		loc = WindowUtils.getLocation();
		if (loc.getParameter(\"docPath\"  [file] )!=null && !loc.getParameter(\"docPath\" ).equals(\"\" )) {
			fldPath = loc.getParameter(\"docPath\" ).substring(0,loc.getParameter(\"docPath\" ).lastIndexOf(\"/\" )); 
			docPath = loc.getParameter(\"docPath\" ); 
		}
Based on this I tried to use URL like this:
http://localhost:8080/OpenKM/es.git.ope ... test_auto/

This logs on to OpenKM but it starts in the root and not /test_auto/. Any suggestions?

Re:Starting OpenKM with specific folder

PostPosted:Wed Dec 02, 2009 11:14 am
by jllort
I think you must add some \"/\" in docPath something like \"/okm:root/\" etc.... not \"okm:root/\"

Re:Starting OpenKM with specific folder

PostPosted:Fri Dec 04, 2009 9:50 am
by jeppe
I have tried this too. Also tried with %2F for / and so on - without any luck :(

Re:Starting OpenKM with specific folder

PostPosted:Fri Dec 04, 2009 3:13 pm
by jllort
have you tried withouth authentication params , be authenticated and pass the params. To detect where\'s the problem.

Opening a specific folder http

PostPosted:Mon Dec 11, 2017 7:29 am
by Manikandarajans
I'm trying to open a specific folder using the below url
http://10.44.13.117:8080/OpenKM/fronten ... ory2/15222
it is opening the folder but showing all other folder in the left side folder tree structure.
Is there any way of hiding all other folder expect the folder we are trying to view.

Re: Starting OpenKM with specific folder

PostPosted:Wed Dec 13, 2017 10:38 pm
by jllort
Is not possilble, when is opened a folder, really navigates across all the hierarchical tree. After the node has been opened, you have a button in the toolbar what does it. For doing it automatically, should be passed an extra parameter for indicating the view what must be selected and make some modifications in the source code.

We can try to provide you the clues about what section in the source code should be modified.

Re: Starting OpenKM with specific folder

PostPosted:Fri Dec 15, 2017 9:19 am
by Manikandarajans
jllort wrote: Wed Dec 13, 2017 10:38 pm Is not possilble, when is opened a folder, really navigates across all the hierarchical tree. After the node has been opened, you have a button in the toolbar what does it. For doing it automatically, should be passed an extra parameter for indicating the view what must be selected and make some modifications in the source code.

We can try to provide you the clues about what section in the source code should be modified.
Thanks for your reply, this information is more helpful

Re: Starting OpenKM with specific folder

PostPosted:Sat Dec 16, 2017 4:52 pm
by jllort
If you want to modify the source code, take a look this two classes Main.java and Toolbar.java. In the first you will see the variables captured and in the second there's the object menu what takes control on what is shown and what not.