Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi friendly forum!
I saw this post regarding tags and Razor: http://our.umbraco.org/forum/developers/razor/22902-Tags-example
But my problem is with tags with spaces, 'Tag with spaces'. The querystring is:
timeline.aspx?tag=Tag%20with%20spaces
@{ string tagToFind = Request.QueryString["tag"]; var allNodesWithTags = Model.AncestorOrSelf().DescendantsOrSelf().Where("tags != \"\"");}@foreach (var node in allNodesWithTags){ string[] tags = node.tags.ToString().Split(','); if (tags.Contains(tagToFind)) { <a href="@node.Url">@node.Name</a><br /> }}
Umbraco 4.8
Best regards!Kim
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Retrieve nodes by tags with spaces
Hi friendly forum!
I saw this post regarding tags and Razor: http://our.umbraco.org/forum/developers/razor/22902-Tags-example
But my problem is with tags with spaces, 'Tag with spaces'. The querystring is:
Umbraco 4.8
Best regards!
Kim
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.