Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vincent DeCapite 64 posts 83 karma points
    Mar 29, 2011 @ 14:40
    Vincent DeCapite
    0

    External Link Template

    Hi There,

    I have a template called "Link" that is suppose to give the user an option to create a navaigation heading and point it to an external link. I can get the menu heading to appear but cannot get the link part to work.

    The Link Template looks like this:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <umbraco:Item field="externalLink" runat="server"></umbraco:Item>
    </asp:Content>

    But all this does is output the link to text on the screen instead of being an actual link.

    Can anyone help with this? Would be greatly appreciated! Thanks

  • Neil Killen 17 posts 37 karma points
    Mar 29, 2011 @ 15:13
    Neil Killen
    0

    Hi Vincent,

    try this

    <a href="<umbraco:Item field="externalLink" runat="server"></umbraco:Item>"> Click me</a>

     

    Neil

  • Sean Mooney 131 posts 158 karma points c-trib
    Mar 29, 2011 @ 15:25
    Sean Mooney
    0

    Vince,

    You could build a .Net user control to do a

    response.redirect('url here')

    to the new url

  • Vincent DeCapite 64 posts 83 karma points
    Mar 29, 2011 @ 15:33
    Vincent DeCapite
    0

    Hi Neil,

     

    That doesn't work because all it does is bring me to a link, I need it to do an automatic redirect.. I tried a meta refresh but that didn't work for some reason

  • Neil Killen 17 posts 37 karma points
    Mar 29, 2011 @ 16:26
Please Sign in or register to post replies

Write your reply to:

Draft