More in this section

Forums / Developing with Sitefinity / Events: Make Web and Email URL clickable

Events: Make Web and Email URL clickable

4 posts, 0 answered
  1. Dale Palmer
    Dale Palmer avatar
    20 posts
    Registered:
    12 May 2008
    11 Feb 2009
    Link to this post
    Hi

    In the events, when i add a url and contact email address for an event, it will not render them as html links, except it renders it as plain text.

    After looking at ListPageDetail.ascx in Sitefinity\ControlTemplates\Events\Modes I noticed that it is setup to render the links as html but it doesnt work???


            <address class="sf_eventContact">         
                 
                <asp:Literal ID="Contact_Name" runat="server" Text="{0}"></asp:Literal><p> 
                Email: <asp:Literal ID="Contact_Email" runat="server" Text="<a href='mailto:{1}'>{0}</a>"></asp:Literal><br /> 
                Phone: <asp:Literal ID="Contact_Phone" runat="server" Text="{0}"></asp:Literal><br /> 
                Website: <asp:Literal ID="Contact_Web" runat="server" Text="<a href='http://{1}'>{0}</a>"></asp:Literal><br /> 
     
            </address> 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Feb 2009
    Link to this post
    Hello Dale Palmer,

    Thank you for using our services.

    Please take a look at the following forum post were I have described in details how to extend EventsViewControlDesigner and make the Contact information visible properly as links

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bmhdtt.asp


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dale Palmer
    Dale Palmer avatar
    20 posts
    Registered:
    12 May 2008
    12 Feb 2009
    Link to this post
    I tried what you suggested but I couldn't find the following

    <sfDesignSettings:TextSetting ID="TextSetting51"   
                          TargetID="Contact_Web"   
                          SettingTitle="Contact: Web"    
                          AllowLabelSetting="False"    
                          AllowFormatSetting="True"   
                          FormatType="String"   
                          AllowVisibilitySetting="True"   
                          TargetVisibleByDefault="True">   
                          </sfDesignSettings:TextSetting>   

    In ~/Sitefinity/Admin/ControlTemplates/Events/Design/EventsViewControlDesigner.ascx ????
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    12 Feb 2009
    Link to this post
    Hello Dale Palmer,

    You need to add the Text setting under List & Page mode as the forum post suggests. First you modify ListPageDetail template and remove the plhWho tag and text property of the controls. Then, you should add new Text properties. Thus, they will appear in the ControlDesigner, under Settings section and the list of settings will be extended. By doing so, you will be able to show/hide them and set different strings as a Format type.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered