cancel
Showing results for 
Search instead for 
Did you mean: 

Is possible to add new initial-location for alfresco

mohammed_amr
Champ in-the-making
Champ in-the-making
Dears,

I need to change the initial-location for alfresco, but notice that i don't need to use myaflresco, companyhome, guesthome or etc.

But what i want to do is to implement a new JSP page and then refer to it as initial-location.

Is that possible and if yes can anyone help.

Sorry, i notice that within web-client-config.xml file there is a sentence like

<!– This value should be one of 'myalfresco', 'userhome', 'companyhome' or 'guesthome' –>

and i can override the value of initial-location using web-client-config-custom.xml by doing the folowing

<config>
  <client>
     <initial-location>companyhome</initial-location>
  </client>
</config>

but the previous is not my request, simply i need to a code like this

<config>
  <client>
     <initial-location>/jsp/initial.jsp</initial-location> <!– As Example –>
  </client>
</config>

Is Possible to point a jsp as an initial-location ? and how ?

Thanks,
Mohammed Amr.
6 REPLIES 6

mohammed_amr
Champ in-the-making
Champ in-the-making
Any feedback,  :!:

mrogers
Star Contributor
Star Contributor
I see topics and JIRAs on configuring the "start location", which is what I think you are asking for.

Its a user preference.

mohammed_amr
Champ in-the-making
Champ in-the-making
exactly, how can i add new start location ? i override the UserPreferencesBean to expose a four of select menus in a user profile

- My Alfresco
- Guest Home
- User Home
- Company Home
- Correspondence System (new).

i create a new user and assigned to him a new start location (Correspondence System),
when i log to the system using this user the outcome is success but there is no new location displayed ?

But rather than an exception has been displayed the following lines describe info related to the exception

[size=100]
javax.faces.FacesException: javax.faces.el.EvaluationException: Cannot get value for expression '/images/icons/#{NavigationBean.nodeProperties.icon}.gif'
caused by:
org.apache.jasper.JasperException: javax.faces.el.EvaluationException: Cannot get value for expression '/images/icons/#{NavigationBean.nodeProperties.icon}.gif'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '/images/icons/#{NavigationBean.nodeProperties.icon}.gif'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property nodeProperties of base of type : org.alfresco.web.bean.NavigationBean
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.NavigationBean, property: nodeProperties
caused by:
java.lang.reflect.InvocationTargetException
caused by:
java.lang.IllegalArgumentException: Node id may not be null
[/size]

after that, i create a new node (new space) on the alfresco with the same name as exist in the UserPreferencesBean but without any progress.

and notice that i read an JIRA related to that but what i'm talking about is not a bug as far as i'm talking about configuration.

I'm fighting but i need a help.

mrogers
Star Contributor
Star Contributor
I think you will also need to change NavigationBean.java to cope with your new location.

You would need to add extra cases for your new value and call  setCurrentNodeId();

mohammed_amr
Champ in-the-making
Champ in-the-making
excellent, it's easy to add a new case but actually how can i obtain the "node Id" (node itself) such

getCompanyHome() which is return a node represents the companyHomoe node, also :? there is another Application class calling a user class to "getCompanyRootId" !!
,


Also i have to ask, Is MyAlfresco, GuestHome, CompanyHome, … etc, normal node ? or we have a system node must be created from other location ?

and based on our question ? i create a node from alfresco but there is a restriction to create new node (space). we talk about location of the new node cause
i cannot create a new node on the same layer to the myalfresco, guesthome and etc.

really, i'm confused and there is no clear way in my mind.

if you need my steps i can write them here if you want that.


Thanks.
Mohammed Amr.

mohammed_amr
Champ in-the-making
Champ in-the-making
Thank for your support.

Really i'm very close from solving the problem, and simply my steps as folloiwng:

- Overrride NavigationBean
- Override faces-config and make a BrowseBean point to My New version of NavigationBean.

Thanks

Mohammed Amr.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.