More in this section
Forums / Developing with Sitefinity / CmsPage selector for New/edit templates

CmsPage selector for New/edit templates

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    16 Feb 2006
    05 Oct 2009
    Link to this post

    I tried to open the CmsHyperLinkUrlWebEditor from my templates using this code but i open the image selector, not the Page selector!.

    <li class="selector">  
                                        <asp:Label ID="Label9" AssociatedControlID="Link1Url" runat="server"><asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Link1Url %>"></asp:Literal> <em id="Link1UrlLabel" runat="server"></em></asp:Label> 
                                        <asp:TextBox ID="Link1Url" Text="" runat="server" Width="200px"></asp:TextBox>     
                                        <sfLib:ButtonSelector WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/PagesSelector.aspx"     
                                        AssociatedControls="Link1Url" runat="server" CssClass="Picker" ButtonText="Select" /> 
                                        <class="example"><asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Link1Name %>"></asp:Literal></p>   

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    07 Oct 2009
    Link to this post
    Hi Pierre,

    There should not be a problem opening the WebEditor. Most probably the page or the dialog has not been refreshed. However, using the ButtonSelector with different template could cause a js problems because sfref attribute could not be returned correctly.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered