forked from Sitecore/Media-Framework-Brightcove-Edition
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a custom computed index field for the video labels field to support full text search * Content updates * Mock a response for the GetLabels method until support for labels is actually enabled * Add a pull pipeline for labels * Content Updates * Update the video pull/push pipelines to support labels * Content updates * Add pipeline processor for resolving labels * Add support for updating labels (renaming) labels * Add support for deleting labels and some bug fixes/tweaks * Content changes * Enable full text search for the new brightcove folder field * Content updates * Create pull pipeline for folders * Content updates * Create push pipeline for folders * Content updates * Add support for syncing the folder field on video items * Content updates * Add a computed index field for the video folder field * Content updates * Content updates * Add 10.1.3 package manifest to solution * Update experience rendering to use a Url rendering parameter instead of reading from the context item * Configure the experience rendering to support the sitecore experience editor * Move experience rendering into sitecore_modules and remove views folder * Add null check to folder computed field to prevent unnecessary logging * Add 10.1.3.1 package to solution Co-authored-by: Cody Rodgers <[email protected]>
- Loading branch information
1 parent
a857765
commit 146598a
Showing
30 changed files
with
1,393 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Brightcove.Core.Models; | ||
using Brightcove.Core.Services; | ||
using Brightcove.MediaFramework.Brightcove; | ||
using Brightcove.Web.Models; | ||
using Newtonsoft.Json; | ||
using Sitecore.Data; | ||
using Sitecore.Data.Items; | ||
using Sitecore.Mvc.Controllers; | ||
using Sitecore.Mvc.Names; | ||
using Sitecore.Sites; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Mvc; | ||
using Sitecore.Diagnostics; | ||
|
||
namespace Brightcove.Web.Controllers | ||
{ | ||
public class ExperienceController : SitecoreController | ||
{ | ||
public ActionResult Render() | ||
{ | ||
var renderingContext = Sitecore.Mvc.Presentation.RenderingContext.CurrentOrNull; | ||
ExperienceModel model = new ExperienceModel(); | ||
|
||
if (renderingContext != null) | ||
{ | ||
model.Url = renderingContext.Rendering.Parameters["Url"]; | ||
} | ||
|
||
return PartialView("/sitecore modules/Web/Brightcove/Views/ExperienceRendering.cshtml", model); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace Brightcove.Web.Models | ||
{ | ||
public class ExperienceModel | ||
{ | ||
public string Url = ""; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
Brightcove.Web/sitecore modules/Web/Brightcove/Views/ExperienceRendering.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@using Brightcove.Web.Models | ||
@using Sitecore | ||
@model ExperienceModel | ||
|
||
@if (Sitecore.Context.PageMode.IsExperienceEditor) | ||
{ | ||
if (!string.IsNullOrWhiteSpace(Model.Url)) | ||
{ | ||
<div style="padding: 1em"> | ||
<iframe style="display:block;border:none;margin-left:auto;margin-right:auto;" src="@Model.Url" allow="autoplay; fullscreen; geolocation; encrypted-media" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe> | ||
</div> | ||
} | ||
else | ||
{ | ||
<div style="margin: 1em; padding: 1em; background-color: lightgrey">No URL set has been set for this experience. Configure the rendering using the "More->Edit component properties" option.</div> | ||
} | ||
} | ||
else if (!string.IsNullOrWhiteSpace(Model.Url)) | ||
{ | ||
<iframe style="display:block;border:none;margin-left:auto;margin-right:auto;" src="@Model.Url" allow="autoplay; fullscreen; geolocation; encrypted-media" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe> | ||
} |
Oops, something went wrong.