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

Forums / Developing with Sitefinity / Select internal page

Select internal page

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    10 Jul 2010
    Link to this post
    Hi all,

    What again is needed to popup the internal Page Selector in Sitefinity.
    I know how to do this from code behind, but it is also possible inside a template.

    I want a button that popups a windows to select a page and return the url.

    Thanks,
    Daniel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Jul 2010
    Link to this post
    Hello Daniel,

    You have to use PropertyEditorDialog that generates "Select" button. Another option is using ButtonSelector control and setting its WindowNavigateUrl value to ~/Sitefinity/UserControls/Dialogs/PagesSelector.aspx

    All the best,
    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. Liam
    Liam avatar
    18 posts
    Registered:
    30 Jun 2010
    19 Jul 2010
    Link to this post
    Hi,

    I have tried doing this and I have seen some other similar posts on this issue. I have tried the ButtonSelector approach but I find that what gets inputed to the associated TextBox is a Sitefinity page id, for example "[Sitefinity]ed7d7c6e-90e7-4872-a9e1-30029d163b30". Why is that and how do I get the url?

    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Jul 2010
    Link to this post
    Hi Liam,

    This is a dynamic url that you have to resolve - resolving dynamic links. Another option - the easiest one, is to modify Sitefinity\Admin\ControlTemplates\Libraries\Dialogs\ImageEditorDialog.ascx


    Here you should set  closeArgument.src = uplImg.src; inside insertLink() function and finally return the closeArgument.src

    var radWindow = getRadWindow();
    radWindow.argument = closeArgument.src;
    radWindow.close(closeArgument.src)


    Sitefinity\Admin\ControlTemplates\News\Dialogs\ButtonSelector.ascx

    Add the following condition

    if (sender.argument.attributes == undefined) {
                  unresolved = sender.argument;
              }

    in  OnClientClose

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