cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate Site location -- hierarchy or other

bopolissimus
Confirmed Champ
Confirmed Champ
Hi all,

I'm working with an alfresco site for a University.  They've got their classes organized as LDAP groups (class is subject plus school year, term and section.  For a given subject there may be multiple classes in the same term, and they keep previous year's classes for history).

They want to have a Site per class (approx, some classes might not have a site).  If there are hundreds of classes per year, the Sites directory would soon become very difficult to view and load.

Is it possible to have Sites that are not sitting right in the Sites directory?  e.g., is it possible to have just directories under Sites (e.g., per subject, or per year) and then have the actual Sites be organized under those directories?

e.g., instead of:

Sites
  English101-2014-1
  English101-2014-2
  …
  English101-2014-10
  English101-2013-1
  English101-2013-2
  …
  English101-2013-10
  …
  English101-2000-10

is it possible to create Sites such that they are, e.g.,

Sites
  English101
    2014
      2014-1
      2014-2
      …
      2014-10
    2013
      2013-1
      2013-2
      …
      2013-10
    …
    2000
      2000-1
      …
      2000-10
  English150
    …
  
Gerald
4 REPLIES 4

bopolissimus
Confirmed Champ
Confirmed Champ
I didn't set the alfresco version correctly there.  They are currently on Alfresco Community 4.2.c but will be upgrading to 4.2.f soon.

romschn
Star Collaborator
Star Collaborator
Site Document library can have the folder structure as required for a site. It completely depends on your requirement how you want to go whether with a single site or multiple site etc. What exactly are you trying to implement?

bopolissimus
Confirmed Champ
Confirmed Champ
Hi romschn,

The question is about organizing Sites, not Documents within a site. 

Consider the situation where I will have 1000 sites added per year.  In the first year, when someone goes to the Repository|Sites (I know, they're not supposed to do that and should use share and go to My Sites, but people will do it anyway), they'll wait quite a long time to get the directory listing in the left hand pane.  Or they'll scroll through many pages to get to the sites they're interested in.

For this situation: is it possible (and how do I do it) to have Sites created somewhere else than just "Company Home > Sites".  If it's possible, I'd be able to organize the Sites by directory.  e.g., every year's Sites all together under a directory named for the year, or similar.

If I can organize Sites this way, it would be much easier to traverse to the site I want.  I'd go to the folder for the year of the site, and then I'd have a smaller set of Sites to look through.  Within the year I'd probably also organize the Sites by subject, so wouldn't need to look through 1000 sites, but instead select one of 100 subjects, and then I'd have 10 Sites to look through within that.

Gerald

valfontanette
Champ in-the-making
Champ in-the-making
Hi,

I am trying to do something similar.
I've done a javascript to create my defined structure for companies. So, each new company to be created I set the script to:
- create an user for this company;
- create a group for them;
- set the user in their group;
- create a folder for this company;
- set permissions for this group on this folder;

After that, I need to login as the created user and set the startLocation for it. The start location comes as "My Alfresco".
I need to set this to "My home" for some users (not all of them) but they are many. So, I am trying to do this in my script also. But, it is not working.

How to set the start location for some users? Is it possible by javascript?

So far, I have tried these:





usuarios[0]=new Array("cliente1","CLIENTE 1","CLIENTE 1","cliente1@empresa.com.br","cliente1","CLIENTE 1","PROJETO 1 - PEDIDO 001");

for (var i in usuarios)
{
username = usuarios[0];
firstname = usuarios[1];
lastname = usuarios[2];
email = usuarios[3];
passwd = usuarios[4];
nome_pastacliente = usuarios [5];
nome_projeto = usuarios [6];
   
nome_grupocliente = "G_CLI_"+usuarios [5];
      
people.createPerson(username, firstname, lastname, email, passwd, true);
var user = people.getPerson(username);


//create group …
//set user in the group …

//Set the start location

(1) user.properties["cm:initial-location"]= "myalfresco";
(2) user.properties["cm:initial-location"]= "My Home";
(3) user.properties["cm:defaultHomeFolderPath"]= "My Home";

user.save();

}



What Am I doing wrong? Is there a way to set StartLocation for different kind of users?

Thanks a lot!