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

Forums / General Discussions / Permalink for News detail page

Permalink for News detail page

4 posts, 0 answered
  1. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    08 Dec 2010
    Link to this post
    Hi,
    I am using an external template for News Detail page. I want to show a permalink there. How to grab a link for permalink?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Dec 2010
    Link to this post
    Hi Asif,

    Thank you for using our services.

    You can try using the bellow piece of markup:
    <a id="permalink" href="">Perma link</a>
        <script type="text/javascript">
            $get('permalink').href = document.location;
    </script>


    Kind regards,
    Radoslav Georgiev
    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. Asif
    Asif avatar
    110 posts
    Registered:
    18 Nov 2010
    09 Dec 2010
    Link to this post
    Thanks Radoslav. It worked.
    Can I get some query string and some id instead of the page's path in permalink?
    for example my permalink is "http://xyz.com/news/10-12-01/Sample_News_Title.aspx" and my client wants some thing like "http://xyz.com/news/news.aspx?guid=234234234890" ??
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Dec 2010
    Link to this post
    Hello Asif,

    From <cmsEngine> node of the web.config you can get access to the News provider and change its urlRewriteFormat to Guid.

    urlRewriteFormat="{GUID}"

    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
4 posts, 0 answered