Need email notification to point to Share not Alfresco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2010 10:13 AM
I want to change the following code to point to Share instead of to Alfresco since my users only have access to Share.
From notify_user_email.ftl
**************
You can view it through this link:
https: //mydomain/alfresco${document.url}
*************
An example desired rendered URL would look like this –
https: //mydomain/share/page/site/hq/document-details?nodeRef=workspace://SpacesStore/253ac02f-02a9-4016-a108-bfe98ea8c17b
Where would I find out how to programatically define this?
Thanks,
Tim
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 09:12 AM
For example -
The URL to the document is:
https: //mydomain/share/proxy/alfresco-feed/api/node/content/workspace/SpacesStore/b2e3c064-9988-422e-8416-05795e70d5fe/notify_user_email-3.ftl
The above example generates the following URL:
https: //mydomain/share/proxy/alfresco-feed/api/node/content/d/d/workspace/SpacesStore/b2e3c064-9988-422e-8416-05795e70d5fe/notify_user_email-3.ftl
Thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 12:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 02:50 PM
As for the others, there's some work in the DocLib webscripts to work out whether an arbitrary nodeRef (which could live anywhere in the Repository) is actually part of a Site or not. This is done by examining the node's qnamePath. Something like:
var qnamePaths = node.qnamePath.split("/");var displayPaths = node.displayPath.split("/");if ((qnamePaths.length > 5) && (qnamePaths[2] == "st:sites")){ // This asset belongs to a site var site = displayPaths[3]; [generate the url]}
You should be able to generate the URL from there, although you'd have to "know" the first part, e.g. http://server

Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 02:59 PM
This is beyond my skill set - I was hoping it was as easy as adding something like ${document-link.page} to the end of the known part of the URL.
I sure would have thought this would have been basic functionality for the application - even this forum has the email alert ability.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 03:24 PM
Thanks,
Mike
P.S. I'm not sure how comparing a REST-based two-tier CMS to a PHP forum is particularly relevant. :?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2010 05:36 PM
Is there a document somewhere that can walk me through the process of how to create the appropriate dynamic URL?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2010 10:18 AM
Sample URL
https://mydomain.com/share/page/site/az/document-details?nodeRef=workspace://SpacesStore/66c42c1b-0d...
So it seems to me the only thing I need to figure out is how to reference the site - az in this example and the variable that represents the document in the SpaceStore - 66c42c1b-0d58-4757-a08b-c20ab51f3be6 in this example.
I would think it would be something like
https://mydomain.com/share/page/site/${document.site}/document-details?nodeRef=workspace://SpacesSto...}
But I can't find the reference document that outlines the list of the ${…}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2010 07:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2010 04:30 PM
what do I do with this piece of code?
var qnamePaths = node.qnamePath.split("/");var displayPaths = node.displayPath.split("/");if ((qnamePaths.length > 5) && (qnamePaths[2] == "st:sites")){// This asset belongs to a sitevar site = displayPaths[3];[generate the url]}
I cannot put it inside a template, so where should it go?
Thanks
