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

Forums / Developing with Sitefinity / Creating Links to Library Content

Creating Links to Library Content

3 posts, 0 answered
  1. Rehan
    Rehan avatar
    10 posts
    Registered:
    25 Nov 2009
    24 Feb 2010
    Link to this post
    Hi there,

    Finally after many hours, almost ready to launching our new site, which in SF, is looking good.
    Once question, at present, when generating content in the generic content control, i am creating hyperlinks to other internal pages, whch SF does great, especially as it records the GUID of the page not the URL.

    However i want to create hyperlinks to specific content rather than a page created. E.g. In my content i am referencing and news article i have created, and want to provide a link to that specific article, or to a specific Blog, however i cant  seem to do this. Am i missing a simple trick here?

    Thanks
    Rehan
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    24 Feb 2010
    Link to this post
    Hi Rehan Butt,

    You can create a custom dialog from where you are entering the links. The content item has property - urlWithExtension that you have to use. The main problem is that the content item does not know on which page exactly the ContentView based control is generated. The url is relative and it is formed by urlRewriteFormat value declared for the provider in the web.config file. To get this properly working you do not have to change the page where your ContentView control resides, because this will break all links. Anyhow you may find this post useful - Getting your News articles full Urls

    Sincerely yours,
    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.
  3. Rehan
    Rehan avatar
    10 posts
    Registered:
    25 Nov 2009
    25 Feb 2010
    Link to this post
    Hi Ivan,

    The ever amazing support from Telerik, never fails to impress me. Thanks so much, got some good ideas on how to integrate this now into the controls, provide a 3rd tab on the link manager to link to library items by page..

    thanks again
    rehan
Register for webinar
3 posts, 0 answered