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

Forums / General Discussions / links not working

links not working

6 posts, 0 answered
  1. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    26 Mar 2010
    Link to this post
    The email address and web links on events view is not clickable.
    I checked few site in showcases and their is the same.
    How to fix it?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Mar 2010
    Link to this post
    Hi Rabindra,

    1. Map ListPageDetail.ascx remove the plhWho tag and Text property of the Literal controls for each of the Contact fields (Contact_Name, Contact_Email, etc.). That section looks like this now:

    <div id="ContactInfo" runat="server" class="sf_eventContact">
        <div><asp:Literal ID="Contact_Name" runat="server"></asp:Literal></div>
        <div><asp:Literal ID="Contact_Email" runat="server"></asp:Literal></div>
        <div><asp:Literal ID="Contact_Phone" runat="server"></asp:Literal></div>
        <div><asp:Literal ID="Contact_Cell" runat="server"></asp:Literal></div>
        <div><asp:Literal ID="Contact_Web" runat="server"></asp:Literal></div>
    </div>


    2. Map EventsViewControlDesigner.ascx, I removethe TextSetting for where TargetID="plhWho" and replaced it with the following (this is in the <DetailSettings> in the List & Page presentation mode section):

    <sfDesignSettings:TextSetting ID="TextSetting11"
                          TargetID="Contact_Name"
                          SettingTitle="Contact: Name" 
                          AllowLabelSetting="False" 
                          AllowFormatSetting="True"
                          FormatType="String"
                          AllowVisibilitySetting="True"
                          TargetVisibleByDefault="True">
                          </sfDesignSettings:TextSetting
    <sfDesignSettings:TextSetting ID="TextSetting48"
                          TargetID="Contact_Email"
                          SettingTitle="Contact: Email" 
                          AllowLabelSetting="False" 
                          AllowFormatSetting="True"
                          FormatType="String"
                          AllowVisibilitySetting="True"
                          TargetVisibleByDefault="True">
                          </sfDesignSettings:TextSetting>
    <sfDesignSettings:TextSetting ID="TextSetting49"
                          TargetID="Contact_Phone"
                          SettingTitle="Contact: Phone" 
                          AllowLabelSetting="False" 
                          AllowFormatSetting="True"
                          FormatType="String"
                          AllowVisibilitySetting="True"
                          TargetVisibleByDefault="True">
                          </sfDesignSettings:TextSetting>
    <sfDesignSettings:TextSetting ID="TextSetting50"
                          TargetID="Contact_Cell"
                          SettingTitle="Contact: Cell" 
                          AllowLabelSetting="False" 
                          AllowFormatSetting="True"
                          FormatType="String"
                          AllowVisibilitySetting="True"
                          TargetVisibleByDefault="True">
                          </sfDesignSettings:TextSetting>
    <sfDesignSettings:TextSetting ID="TextSetting51"
                          TargetID="Contact_Web"
                          SettingTitle="Contact: Web" 
                          AllowLabelSetting="False" 
                          AllowFormatSetting="True"
                          FormatType="String"
                          AllowVisibilitySetting="True"
                          TargetVisibleByDefault="True">
                          </sfDesignSettings:TextSetting>

    The changes above will expose option to edit the TextSettings Format so you will be able to make the email and web address as links. You will be able to do this from the EventsView control designer - when you open the control from editing and go to Settings section.


    For Contact_Web use the following string format : <a href='http://{0}'>{0}
    For Contact_Email use the following string format: <a href='mailto:{0}'>{0}</a>


    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.
  3. Scott Rozman
    Scott Rozman avatar
    93 posts
    Registered:
    10 Oct 2012
    31 Aug 2010
    Link to this post
    Hello, Ivan. I am trying to implement this fix on my website running 3.7 SP3 and am now having problems where the string format will not save from the back end. I can enter values for "Contact: Email" for example, but when I click either "close" or "I'm Done" the values I've entered are blank if I go back in to look at them.

    Thanks in advance for your assistance.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Sep 2010
    Link to this post
    Hi Scott Rozman,

    Try the following

    1. Remove the control from the page.
    2. Drop a new control on  a page.
    3. Switch the presentation mode and click I'm done.
    4. Then open the control for editing and choose the presentation mode you are going to use. Click "I'm done"
    5. Open the control for editing and set the values for Contact Email

    In some cases the settings are not initialized until you drop the control or switch the presentation mode.

    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
  5. Scott Rozman
    Scott Rozman avatar
    93 posts
    Registered:
    10 Oct 2012
    03 Sep 2010
    Link to this post
    Thanks Ivan, that sequence got the string formatting to save. I'm curious would any other tricks such as re-starting the app pool help in this case? I have a news hub site that has multiple pages using this ContentViewSingleItemView, but I've also made quite a few adjustments for various string formats etc. Having to delete the control and drop a new one meant a good chance of missing one of the many settings that were changed for this particular page.

    thanks in advance.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Sep 2010
    Link to this post
    Hello Scott Rozman,

    The state of the control could not be updated without removing it from a page or changing the presentation mode. In both the cases you will loose the settings - they will be just reset. There is one option that you could try. Before removing the control open its Advanced mode and Copy the XML form

    MasterSettings
    DetailSettings


    The XML in these sections keeps all settings of the control from the control designer. So, copy the settings, change the presentation mode, save the control ,open it for editing set the desired presentation mode, replace the current MasterSettings and DetailSettings, set the values you want for the Contact_Name and Contact_Web ect.

    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
Register for webinar
6 posts, 0 answered