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

Forums / Developing with Sitefinity / CmsPage selector for New/edit templates

CmsPage selector for New/edit templates

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    05 Oct 2009
    Link to this post
    Hi,

    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>   
                                    </li> 

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 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