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

Forums / Bugs & Issues / PagesSelector.aspx conflicts with ImageEditorDialog.aspx

PagesSelector.aspx conflicts with ImageEditorDialog.aspx

4 posts, 0 answered
  1. Osman
    Osman avatar
    22 posts
    Registered:
    04 Oct 2010
    11 Dec 2010
    Link to this post
    I have 2 image fields and 1 page/url field in my custom content-type.

    When "Page_Url" section is un-commented, both image fields' selectors full URLs for the selected image values, but the page selector would return proper GUID.

    If "Page_Url" section is commented out, both image fields start acting normal, and they would return GUID as values.

    Am I doing something wrong or this is just good old bug? :-D

    Any suggestion or feedback is most welcome.

    Thanks,

    Osman


    01.          <li class="selector">
    02.            <asp:Label AssociatedControlID="Thumbnail" runat="server">
    03.              <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Thumbnail %>"></asp:Literal> *
    04.              <em id="ThumbnailLabel" runat="server"></em>
    05.            </asp:Label>
    06.            <asp:TextBox ID="Thumbnail" Text="" runat="server" MaxLength="250"></asp:TextBox>
    07.            <sfLib:ButtonSelector AssociatedControls="Thumbnail" runat="server" cssclass="pickerWrapper"
    08.              WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx"
    09.              ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx"
    10.              ButtonText="<%$Resources:Select%>" />
    11.            <p class="example"><asp:Literal ID="Literal15" runat="server" Text="<%$Resources:ThumbnailNote %>"></asp:Literal></p>
    12.            <asp:RequiredFieldValidator runat="server" ControlToValidate="Thumbnail"
    13.              Display="Dynamic" EnableViewState="False" CssClass="validMessage"
    14.              SetFocusOnError="True" ValidationGroup="InsertBuild">
    15.              <strong><asp:Literal runat="server" Text="<%$Resources:ThumbnailEmpty %>"></asp:Literal></strong>
    16.            </asp:RequiredFieldValidator>
    17.          </li>
    18.          <li class="selector">
    19.            <asp:Label AssociatedControlID="Image" runat="server">
    20.              <asp:Literal runat="server" Text="<%$Resources:Image %>"></asp:Literal> *
    21.              <em id="ImageLabel" runat="server"></em>
    22.            </asp:Label>
    23.            <asp:TextBox ID="Image" Text="" runat="server" MaxLength="250"></asp:TextBox>
    24.            <sfLib:ButtonSelector AssociatedControls="Image" runat="server" cssclass="pickerWrapper"
    25.              WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx"
    26.              ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx"
    27.              ButtonText="<%$Resources:Select%>" />
    28.            <p class="example"><asp:Literal ID="Literal11" runat="server" Text="<%$Resources:ImageNote %>"></asp:Literal></p>
    29.              <asp:RequiredFieldValidator runat="server" ControlToValidate="Image"
    30.              Display="Dynamic" EnableViewState="False" CssClass="validMessage"
    31.              SetFocusOnError="True" ValidationGroup="InsertBuild">
    32.              <strong><asp:Literal runat="server" Text="<%$Resources:ImageEmpty %>"></asp:Literal></strong>
    33.            </asp:RequiredFieldValidator>
    34.          </li>
    35.<%--
    36.          <li class="selector">
    37.            <asp:Label AssociatedControlID="Page_Url" runat="server">
    38.              <asp:Literal runat="server" Text="<%$Resources:Url %>"></asp:Literal> *
    39.              <em id="Page_UrlLabel" runat="server"></em>
    40.            </asp:Label>
    41.            <asp:TextBox ID="Page_Url" Text="" runat="server" MaxLength="250"></asp:TextBox>
    42.            <sfLib:ButtonSelector WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/PagesSelector.aspx"
    43.              ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/Libraries/Dialogs/ButtonSelector.ascx"
    44.              AssociatedControls="Page_Url" runat="server" CssClass="pickerWrapper" ButtonText="<%$Resources:Select%>" />
    45.            <p class="example"><asp:Literal ID="Literal34" runat="server" Text="<%$Resources:UrlNote %>"></asp:Literal></p>
    46.              <asp:RequiredFieldValidator runat="server" ControlToValidate="Page_Url"
    47.              Display="Dynamic" EnableViewState="False" CssClass="validMessage"
    48.              SetFocusOnError="True" ValidationGroup="InsertBuild">
    49.              <strong><asp:Literal runat="server" Text="<%$Resources:UrlEmpty %>"></asp:Literal></strong>
    50.            </asp:RequiredFieldValidator>
    51.          </li>
    52.--%>


    Please also check out the screen shots as well for more clarity.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Dec 2010
    Link to this post
    Hi Osman,

    Which version of Sitefinity you use? We have this issue in older version and the issue comes when iyou use two selectors of the same type in a singe view. Could you check your version  and if you do not use Sitefinity 3.7 SP4 you should upgrade your project.

    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
  3. Osman
    Osman avatar
    22 posts
    Registered:
    04 Oct 2010
    11 Dec 2010
    Link to this post
    Hi Ivan,

    I am using 3.7.2136.2 - standard. I found similar issues in the forum and I realized they were related with the previous versions. That's why I don't understand why it is not working as it should, assuming it has been fixed for this release.

    I also noticed differences with OnClientClose javascript function in following ButtonSelector.ascx files when I compared them: 
    ~/Sitefinity/Admin/ControlTemplates/Libraries/Dialogs/ButtonSelector.ascx vs. ~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx

    I had to enable the URL field to proceed on the project. At least I have the URL field working, but I am temporarily copy&pasting GUIDs for the images. It is not a solution, but I won't have to go back and update those fields at least.

    Would you happen to have any suggestions, workarounds or a solution perhaps :-) I really appreciate any help I can get right now.

    Thank you,
    Osman

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    16 Dec 2010
    Link to this post
    Hello Osman,

    I sent a reply to the support ticket you had opened.

    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