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

Forums / Developing with Sitefinity / Page Selector Need Help.

Page Selector Need Help.

6 posts, 0 answered
  1. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    08 Mar 2010
    Link to this post
    Hi All,

    I Have made a Custom module and in that module i have used RAD GRID. Now that i have worked with the rad Grid Fully . I want to Display the sitefinity's  own page selector in the Template Mode While Inserting and Editing (IN template) , i got an overview from a blog on how to add a page selector to a custom control but i wanted to know can we use the page selector with our button and text box or is their any way that the page selector appears and assigns the selected URL to a Text box in that Template Field.

    Any Ideas will be appreciated
    Thankyou

    Regards
    Adeel Arif
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Mar 2010
    Link to this post
    Hello Muhammad Saqib,

    There is a built in PageSelector that you can use in your templates.

    <%@ Register TagPrefix="sfLib" Namespace="Telerik.Libraries.WebControls" Assembly="Telerik.Libraries" %>
     
    <asp:TextBox ID="Link1Url" Text="" runat="server" Width="200px"></asp:TextBox>    
    <sfLib:ButtonSelector ID="ButtonSelector1" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/PagesSelector.aspx" AssociatedControls="Link1Url" runat="server" CssClass="Picker" ButtonText="Select" />


    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. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    09 Mar 2010
    Link to this post
    It returns the ID of page in the text box like
    [Sitefinity]c2eef4e0-05b9-47d0-9099-689e16e36c63.
    I want to get Page URL.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    09 Mar 2010
    Link to this post
    Hi Muhammad Saqib,

    You need to resolve the dynamic link  Resolving the url of dynamic links.   Sitefinity works with dynamic link which does not get broken if you change the name of a page.

    Best wishes,
    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.
  5. Muhammad Saqib
    Muhammad Saqib avatar
    95 posts
    Registered:
    09 Sep 2009
    11 Mar 2010
    Link to this post
    There occurs an ERROR Some times caused due to the login problem when a page that has anonymous access restricted is accessed through the given code(  Resolving the url of dynamic links.  ) with provider not given that is it tries to get the page through sitemap, it would return an error.

    "Item not found: GUID of the page.

    The code for resolving url works like charm for normal pages but if i am on the page which is allowed to all, means has anonymous access turned on, and from there if i give the ID of a page that has anonymous access turned off the resolving code that you referred fails to return the url.(NOTE i am not passing any provider i assume that the site map node procedure would get me the page as it gives me the pages that have anonymous access turned off.)

    so i was wondering is there any way that i can get the page which has anonymous access restricted but i can just get its (URL) with its GUID.


    Thanks

    Regards
    Muhammad saqib
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Mar 2010
    Link to this post
    Hi Muhammad Saqib,

    You can use CmsManager  and its method GetPages that will return a list of  all pages. You can also pass the ID directly to a CmsManager instance instead to the sitemap by using manager's GetPage method.

    Best wishes,
    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
6 posts, 0 answered