Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

fixes for fetching the url of link item in media carousel #375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
@if (element.Item.IsDerived(Templates.HasMediaVideo.ID))
{
<video autoplay="" loop="" muted="" class="video-bg img-responsive">
<source src="@element.Item.MediaUrl(Templates.HasMediaVideo.Fields.VideoLink)" type="video/mp4">
<source src="@element.Item.LinkFieldUrl(Templates.HasMediaVideo.Fields.VideoLink)" type="video/mp4">
</video>
}

Expand All @@ -74,4 +74,4 @@
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">@Html.Sitecore().Dictionary("/media/carousel/next", "Next")</span>
</a>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@if (element.Item.IsDerived(Templates.HasMediaVideo.ID))
{
<video autoplay="" loop="" muted="" class="video-bg">
<source src="@element.Item.MediaUrl(Templates.HasMediaVideo.Fields.VideoLink)" type="video/mp4">
<source src="@element.Item.LinkFieldUrl(Templates.HasMediaVideo.Fields.VideoLink)" type="video/mp4">
</video>
}

Expand Down Expand Up @@ -66,4 +66,4 @@
<span class="sr-only">Next</span>
</a>

</div>
</div>