Questions tagged [cshtml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
4answers
72 views

How to render a Link Field with inner elements in .cshtml

As we know, we can use this to render General Link fields in our views: @Html.Sitecore().Field("Field Name", sourceItem)` This will generate the usual output: <a attribute="" another-attribute="...
0
votes
1answer
23 views

How to cache bust CSS and JS assets in Sitecore Helix

I want to be able to loop through my views, particularly my main layout and apply a query string cache buster to our CSS and JS calls as follows: <link rel="stylesheet" href="/assets/css/style.css?...