c1 cms - Composite C1 Razor function - link to external URL -
i've got razor list-to-view function setup , render website url user inputs. problem @ moment clicking url causes anchor try , find page within website, when it's external link.
how do this?
my code rendered url:
<div id="pagedetails"> <h2> @artist.artistname </h2> <p><strong>website:</strong> <a href="@artist.artistwebsite">@artist.artistwebsite</a></p> <p><strong>bio:</strong> @html.c1().body(artist.artistbio)</p> @if (!string.isnullorempty(artist.image)) { <img src="@html.c1().mediaurl(artist.image)" /><br /> } </div>
the url in data type field should start http://:
use 'http://www.xyz.com' rather 'www.xyz.com'
Comments
Post a Comment