Portal Engine
Version 3.x > Portal Engine > How to send the Page URL to a friend View modes: 
User avatar
Member
Member
hazana11-gmail - 1/12/2009 4:54:06 AM
   
How to send the Page URL to a friend
How can I send the URL of the page in an email sent to a friend using the send to friend feature, so that my friend can also view that page?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/13/2009 6:35:22 AM
   
RE:How to send the Page URL to a friend
Hi,

You need to place this web part on appropriate page template and you need to use a transformation for the e-mail message.

Then when the user enter an address, the e-mail is sent.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
hazana11-gmail - 1/15/2009 5:49:33 AM
   
RE:How to send the Page URL to a friend
I dont get the transformation properly. Even if I had applied the transformation..I dont get the Document link.I used this method in the transformation:<%# GetDocumentLink() %>

can u pls be knid enough to send a transformation to use which will include the URL of the page and a message to friend.

Please reply as soon as possible.

User avatar
Member
Member
Darren - 1/15/2009 6:06:32 AM
   
RE:How to send the Page URL to a friend
Try this - <a href="<%# GetDocumentUrl() %>"><%# Eval("NewsTitle") %></a>

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/15/2009 7:09:27 AM
   
RE:How to send the Page URL to a friend
Hello,

you could use this code in the Source mode of FCKEditor while modifying the Email template:

<a href="http://<your domain>{%NodeAliasPath%}">{%NewsTitle%}</a>

You could exchange the NewsTitle for a different context macro – please see here for more details: http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm

and of course do not forgot to change the <your domain>. For example:

<a href="http://google.com{%NodeAliasPath%}">{%NewsTitle%}</a>


Best regards,
Helena Grulichova

User avatar
Member
Member
hazana11-gmail - 1/20/2009 5:18:39 AM
   
RE:How to send the Page URL to a friend
Thanks a lot. This was what I wanted.