cancel
Showing results for 
Search instead for 
Did you mean: 

HyperLink from a document to another in alfresco

lsysamc
Champ in-the-making
Champ in-the-making
I am trying to determine if Alfresco can hyperlink from content in one document to another. We have a knowledge repository and inside some of these documents are links to sections of other documents or entirely different documents. Similar to a WIKI or a help file. When I click on these links, I am directed back to the Alfresco log in page. when i log back in, I am taken to my home site. I want to click on the link and be taken to that document, not the site. And I dont want to have to reauthenticate. Can this be done?

Much appreciation.
12 REPLIES 12

hbf
Champ on-the-rise
Champ on-the-rise
I am trying to determine if Alfresco can hyperlink from content in one document to another.

I'd also like to learn more about this. Certain of my HTML-files (which are content files uploaded to Alfresco) need to contain links to other Alfresco content…

Also, how does this relate to Link Management? For instance, I want to check such links for validity.

Thanks,
Kaspar

lsysamc
Champ in-the-making
Champ in-the-making
Not sure how it relates. I am by no means a programmer that understands all the mumbo-jumbo that a lot of these posts are talking about. What I am looking for is the "setting up Hyper-links in documents to allow a person to be redirected to another document without having to log back in, as long as they have permissions" For Dummy's explanation… I cannot find it…

andyr
Champ in-the-making
Champ in-the-making
This is a key feature that we are looking for as well  - and i cant find reference to it anywhere. Using the Alfresco content - inside an html content page Ive tried pasting in the various links from the document details section (WebDav, details page in URL etc) of anotehr content page - but I get error message about not found. Hunting through these forums I saw something on linking and downloaded a wiki plugin that someone had written, so we have installed that. In the wiki content pasting an afresco content link into a wiki page seems to work, but then there doesnt appear to be any way to link wiki pages to each other.
I would have though that this was pretty generic sort of requirements - am I missing something?

kevinr
Star Contributor
Star Contributor
The content links generated by the web-client are absolute URLs that can be used to link to content in Alfresco. You can put these in documents, if the user is already logged in and has permissions on the document they will not need to reauthenticate. The link you want to copy is called 'View in Browser' from the Details page for a document. It will look something like this:

http://server:8080/alfresco/d/d/workspace/SpacesStore/e1f6cf2c-1a95-11dc-9280-8fd6e895c849/myfile.do...

Right-click on 'View in Browser' and choose "Copy Link Location" (FireFox) or right-click and choose 'Copy Shortcut'  (IE) will get you the link you want from the Details screen for a document.

Hope this helps,

Kevin

andyr
Champ in-the-making
Champ in-the-making
Thanks Kevin - but when I follow these instructions - I can create the link in content - but when clicking on it to following the link i get a error as below - I assume we have a configuration problem somewhere? The link I am clicking on looks as follows: http://alfresco:8080/alfresco/d/d/workspace/SpacesStore/c5b10307-4f8c-11dc-bd2d-7fac6534f1cb/Test%20...


org.alfresco.error.AlfrescoRuntimeException: Error during download content servlet processing: Node does not exist: d://d/workspace
caused by:
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: d://d/workspace

Show Details
org.alfresco.error.AlfrescoRuntimeException: Error during download content servlet processing: Node does not exist: d://d/workspace
at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:281)
at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: d://d/workspace
at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodeNotNull(DbNodeServiceImpl.java:131)
at org.alfresco.repo.node.db.DbNodeServiceImpl.getProperty(DbNodeServiceImpl.java:930)
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.alfresco.repo.transaction.TransactionResourceInterceptor.invoke(TransactionResourceInterceptor.java:138)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy2.getProperty(Unknown Source)
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
at $Proxy3.getProperty(Unknown Source)
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:145)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy2.getProperty(Unknown Source)
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:256)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:191)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy2.getProperty(Unknown Source)
at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:210)
… 17 more

Return to application
Logout

kevinr
Star Contributor
Star Contributor
I forgot to ask you something - are you using 2.0 or 2.1? If you are using 2.0 the links need to look like this:

http://alfresco:8080/alfresco/download/direct/workspace/SpacesStore/c5b10307-4f8c-11dc-bd2d-7fac6534...

The new shorter links only work in 2.1 (the full length links work in both 2.0 and 2.1)

Thanks,

Kevin

andyr
Champ in-the-making
Champ in-the-making
Kevin we are using 2.1 community edition

kevinr
Star Contributor
Star Contributor
That's a very odd error. Do the same download links works ok from the Details page for a document? So are you saying that they don't work when you paste them into an external document and then click on them?

Thanks,

Kevin

andyr
Champ in-the-making
Champ in-the-making
Yup. I can copy the View in a browser and details page links into a web page and it will load/display the page fine. I copy the same link into alfresco html content and I get the error that I posted.