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

Forums / General Discussions / link to internal page

link to internal page

8 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    13 Apr 2011
    Link to this post
    I'm trying to add a link to another page within the site in my RadEditor control on the news module, and when I pick the page I want to link to, it's showing as [sitefinity]################## and not as ~/artcle.aspx


    how can I get that to link to the page correctly from the radeditor control?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Apr 2011
    Link to this post
    Hello ,

    Does the dynamic link gets resolved in the HTML after publish?

    Kind regards,
    Ivan Dimitrov
    the Telerik team

  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    13 Apr 2011
    Link to this post
    no, it still shows as [sitefinity]##########################.

    Could it be because I'm using a custom module and pulling the data right from the db using an LINQtoSQL Object?
    If I add a link to the news module, or event module, and put that widget on a page, it renders fine, its just from my custom module that I'm facing the issue
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Apr 2011
    Link to this post
    Hello NuToSitefinity,

    Copy and paste the RadEditor declaration from News module and its templates. If your module is not generic content based, you should resolve the dynamic link manually using LinkParser.ResolveLinks

    All the best,
    Ivan Dimitrov
    the Telerik team

  5. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    13 Apr 2011
    Link to this post
    since my module is not based off of the generic content, how can I show all of my data plus the link that is entered into the rad control? Would this LinkParser.ResolveLinks do the trick?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    14 Apr 2011
    Link to this post
    Hi NuToSitefinity,

    You need to pas the content/html to LinkParser.ResolveLinks which should add src attribute to your links. We do this internally for all GenericContent based modules.

    All the best,
    Ivan Dimitrov
    the Telerik team

  7. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    14 Apr 2011
    Link to this post
    where can I find some info on this so I can see how its done.

    nevermind, i find something in the forums with it
  8. Jason Sypolt
    Jason Sypolt avatar
    2 posts
    Registered:
    30 Mar 2007
    27 Nov 2012 in reply to NuToSitefinity
    Link to this post
    Did you find a good solution to this? If so, would you mind sharing?
Register for webinar
8 posts, 0 answered