1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadEditor - Insert Link

RadEditor - Insert Link

22 posts, 0 answered
  1. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    29 Dec 2009
    Link to this post
    Hi,
    In News Module i have rad editor ( rad editor itself i can insert  one page link , when i click the insert link it open a pop up where i can select the page , when selecting the page link it takes "[Sitefinity]6b62e1f2-34ad-4fc7-add5-5012c8e9c6f7" like that. but i need  "/ar/Home.aspx" ) how can i achive that.

    Thanks

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Dec 2009
    Link to this post
    Hi v,

    It does not make sense to change the [Provider]Guid value to a resolved link. This will break the dynamic link functionality and once you rename the page all links will be broken and no more accessible. Then, you need to find all broken links and fix them manually.
    However you can change the base functionality by replacing the CmsUrlWebEditor from insertLink() function in ~/Sitefinity/Admin/ControlTemplates/Pages/Dialogs/PagesSelector.ascx or create a custom selector.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    29 Dec 2009
    Link to this post
    Thanks Ivan Dimitrov .

    Could you please explain the below , how doe's it work? / needs to set something?

    While creating a newsletter for a multiple group, content editor(rad editor) below

    Insert subscriber data:

    what is the functionality of the above? i just clicked there is no value. please find the attachment herewith

    Thanks


  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Dec 2009
    Link to this post
    Hello v,

    FirstName,LastName are strings that are internaly replaced with the First and Last name of the newsletter  recipient. Unsubscribe link is used when you have users subscribed for a given newsletter. If an user wants to unsibscribe from the list - this user does not want to receive newsletter from you, he/she can click "Unsubscribe link".

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    29 Dec 2009
    Link to this post
    hi,

    I just wanted to change the hyperlink for "unsubscribe now" sent as an email when i use unsubscribe link in the editor. currently its linking to "http://qfctest.iisserv01/en-US/Sitefinity/ControlTemplates/Newsletters/ConfirmUnsubscription.aspx?Email" . i want to change this link to my custom page which i have built. 

    Also the "{FirstName} " and "{LastName} " available in the editor also not showing the user firstname and lastname in the email. its just showing as {FirstName} , {LastName} in the email.

    Here is the sample email i got

    hi {FirstName} 
    Test Newlstter
    Unsubscribe now



    Can you please guide to change these?


    Thanks

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Dec 2009
    Link to this post
    Hello v,

    You can change the unsubscription template path from the web.config file - Notifications provider declaration

    <notifications defaultProvider="Notifications">
                <providers>
                    <clear/>
                    <add name="Notifications" confirmUnsubscriptionUrl="~/TEST.aspx" type="Telerik.Notifications.Data.DefaultProvider, Telerik.Notifications.Data" connectionStringName="DefaultConnection" EnableSsl="false" MergedFields="FirstName;LastName;Email;IsCms;" SendingInterval="1000"/>
                </providers>
            </notifications>
     
    The problem with {FirstName}, {LastName} cannot be reproduced locally under Sitefinity 3.7 SP2. The values are correctly replaced from the First and Last name of the user.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    30 Dec 2009
    Link to this post
    Thanks.

    The email is passing as a encrypted format. (how do i get the normal format?)
    How can i find out the particular user is belongs to which group?
    could you please guide me.

    Thanks
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Dec 2009
    Link to this post
    Hello v,

    The email is not encrypted. You can find the subscriber group using Sitefinity's API. Sample code:

    DataManager dManager = new DataManager();
    Guid ID = new Guid("92C029AD-ACEE-48A3-9751-3CE73BA269A5");
    IList allsubs = dManager.GetSubscribersOfGroup(ID, string.Empty);


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    30 Dec 2009
    Link to this post
    can you please find the attachment.

    i'm just reading the querystring value (?Email) on  aspx.cs  page

     if (Request.QueryString["Email"].ToString() != string.Empty && Request.QueryString["Email"] != null)
            {
                Guid gid = new Guid(Request.QueryString["Email"].ToString());
                DataManager dManager = new DataManager();
                Guid ID = new Guid(gid.ToString());
                IList allsubs = dManager.GetSubscribersOfGroup(ID, string.Empty);
            }

    Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

    Source Error:

    Line 19:         if (Request.QueryString["Email"].ToString() != string.Empty && Request.QueryString["Email"] != null)
    Line 20:         {
    Line 21:             Guid gid = new Guid(Request.QueryString["Email"].ToString());
    Line 22:             DataManager dManager = new DataManager();
    Line 23:             Guid ID = new Guid(gid.ToString());


  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Dec 2009
    Link to this post
    Hi v,

    Use the following code to extract the email.

    CryptographyHandler EncryptionHandler = new CryptographyHandler();
    string subscriberEmail = EncryptionHandler.DecryptText(HttpContext.Current.Server.UrlDecode(Request.QueryString["Email"]), CryptographyHandler.CryptographyAlgorithm.Encoding64String);


    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. v
    v avatar
    27 posts
    Registered:
    12 Aug 2009
    30 Dec 2009
    Link to this post
    Thanks,
     I got the email in proper format. how do i find the user group?

    DataManager dManager = new DataManager();
    Guid ID = new Guid("92C029AD-ACEE-48A3-9751-3CE73BA269A5");
    IList allsubs = dManager.GetSubscribersOfGroup(ID, string.Empty);

    because one user(email id) available more than one group. those scenario, i need to maintain the record.
    Example:
    Group A - test@test.com(Firstname a, lastname b)
    Group B - test@test.com(Firstname a, lastname b)
    Group C - test@test.com(Firstname a, lastname b)

    Group C - User is unsuscribed, how can i find the user group?

     could you please guide me.

    Thanks

  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Dec 2009
    Link to this post
    Hello v,

    Please take a look at the Newsletters API overview and API reference.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  13. Mohudoom Faluludeen
    Mohudoom Faluludeen avatar
    19 posts
    Registered:
    06 Nov 2009
    08 Jan 2010
    Link to this post
    Hi,

    Is it possible to change the unsubscribe link in the email from the newsletter module to pass "subscriberid" in the querystring instead of "email"?

    Thanks
    Faluludeen
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jan 2010
    Link to this post
    Hello Mohudoom Faluludeen,

    I regret to inform you that the email cannot be replaced with the ID. The method is private and it is not possible to override it.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  15. Mohudoom Faluludeen
    Mohudoom Faluludeen avatar
    19 posts
    Registered:
    06 Nov 2009
    08 Jan 2010
    Link to this post
    Thanks for the reply.

    Is it possible to change the querystring or add a new querystring of groupid/groupname in the unsubscribe link?

    Thanks
    Faluludeen

  16. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jan 2010
    Link to this post
    Hi Mohudoom Faluludeen,

    A possible solution is creating a new button that will do the same as the built-in UnsubscribeLink, but append the desired querystring - ID of the user. This link will not be resolved internally by MailingWebService class. You have to read it in Sitefinity/ControlTemplates/Newsletters/ConfirmUnsubscription.ascx.cs. When unsubscribebtn is clicked you have to read the querystring and get the user from there using DataManager.

    protected void unsubscribebtn_Click ( object sender, EventArgs e )
    {
        if(!string.IsNullOrEmpty(HttpContext.Current.Request.QueryString["ID"].ToString())
        {
        Guid userID = new Guid(HttpContext.Current.Request.QueryString["ID"].ToString());
            // add other logic here
        }
    }


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  17. Mohudoom Faluludeen
    Mohudoom Faluludeen avatar
    19 posts
    Registered:
    06 Nov 2009
    08 Jan 2010
    Link to this post
    Hi,
    Thanks for the reply. i want to change the back end process happening when we click "send" button in the newsletter. can i get the code for the send button on click event so that i can customize and use it.


    Thanks
    Faluludeen
  18. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jan 2010
    Link to this post
    Hi Mohudoom Faluludeen,

    The source code is not distributable., but even with the code you will not be able to stop the default process. When the send button is clicked an instance of ControlPanel is created, which means that you have to override the module and implement the ControlPanel. You can take a look at this post. Generally you will have to override the whole module.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  19. Mohudoom Faluludeen
    Mohudoom Faluludeen avatar
    19 posts
    Registered:
    06 Nov 2009
    11 Jan 2010
    Link to this post
    hi,

    with reference to your reply

    "A possible solution is creating a new button that will do the same as the built-in UnsubscribeLink, but append the desired querystring - ID of the user. This link will not be resolved internally by MailingWebService class. You have to read it in Sitefinity/ControlTemplates/Newsletters/ConfirmUnsubscription.ascx.cs. When unsubscribebtn is clicked you have to read the querystring and get the user from there using DataManager"

    I created a new button and written code to add links to the editor but How can I get "ID" of the subscriber in the page where we are adding unsubscribe link to the editor.

    Thanks
    Faluludeen
  20. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    11 Jan 2010
    Link to this post
    Hi Mohudoom Faluludeen,

    This will work only if you send the newsletter to one user. Otherwise you cannot determine which user you have to unsubscribe. You can append the user ID as a QueryString parameter in the url and then include it in the unsubscribe link.  For all other case you have to create a custom module with custom service where you resolve the ID for each user.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  21. Henk Wiersma
    Henk Wiersma avatar
    4 posts
    Registered:
    26 Sep 2012
    19 Feb 2010
    Link to this post
    Hello Ivan,

    I follow the instruction on thread about "Customizing the News Summary field", see http://www.sitefinity.com/support/forums/sitefinity-3-x/developing-with-sitefinity/customizing-the-news-summary-field.aspx so I replaced the summary textbox with radeditor and I added support for links functionality (a.k.a. Content field) but if i do that than I get some strange behaviour with the hyperlinks added to the summary field. The hyperlinks seems stil to be broken if I add a new hyperlink via Pages selector, then save this News item everything ok, but then if I open the saved item in edit mode and read the summary field with html design the hyperlink is no more accessible. Why is that?

    By the way, the hyperlinks added inside the Content field are ok.

    Thanks in Advance,
    Mirko
  22. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    19 Feb 2010
    Link to this post
    Hello Henk Wiersma,

    Most probably the links are not resolved, because we use dynamic hyperlinks. You can find more detailed information at Resolving dynamic links.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
22 posts, 0 answered