Skip to content

Instantly share code, notes, and snippets.

@model Ks.Sf.Web.Model.RelatedEvents.RelatedEventsView
@using Telerik.Sitefinity.Frontend.Mvc.Helpers
@using Telerik.Sitefinity.Modules.Pages
@using Ks.Sf.Web.Model
@using Ks.Sf.Web.Model.Shared
@Html.StyleSheet(Url.WidgetContent("//f.fontdeck.com/s/css/9n0UDimOwEzZYFNKcKHAF3JtOlM/localhost/55321.css"), "head")
@Html.StyleSheet(Url.WidgetContent("~/ResourcePackages/TO/assets/dist/css/touchcarousel.css"), "head")
@Html.Script(ScriptRef.JQuery, "top", false)
<div class="form-group">
<div class="row">
<label>Selected Production to use for Relating:</label>
<sf-list-selector sf-dynamic-items-selector
sf-item-type="properties.ProductionItemType.PropertyValue"
sf-multiselect="false"
sf-selected-item-id="productionId"
sf-selected-item="selectedProductionItem"
sf-identifier-field="Title" />
</div>
{
"priority": 1,
"components" : ["sf-dynamic-items-selector"]
}
(function ($) {
var designerModule = angular.module('designer');
angular.module('designer').requires.push('sfSelectors');
designerModule.controller('SimpleCtrl', ['$scope', 'propertyService', function ($scope, propertyService) {
$scope.feedback.showLoadingIndicator = true;
$scope.productionIds = null;
$scope.selectedProductionItems = null;
@MerrittMelker
MerrittMelker / Current Solution
Last active August 29, 2015 14:25
Problem with joining
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.Linq;
using System.Linq.Expressions;
using System.ServiceModel;
using System.ServiceModel.Activation;
using Ks.Sf.Config;
@MerrittMelker
MerrittMelker / controller
Created July 19, 2015 06:34
Example Backend Widget
using System.Web.Mvc;
using Telerik.Sitefinity.Mvc;
namespace Ks.Sf.Web.Mvc.Controllers
{
[ControllerToolboxItem(Name = "TestDataLoader_MVC", Title = "Test Data Loader",
SectionName = "Dashboard", CssClass = "sfListitemsIcn sfMvcIcn")]
public class TestDataLoaderController : Controller
{
public ViewResult Index()
public ActionResult Sync1()
{
using (var soapClient = MySoapClient())
{
var task = soapClient.Method1Async().ConfigureAwait(false);
ViewBag.Result = task.GetAwaiter().GetResult();
}
return View();
}
using System;
using System.Linq;
using Ks.Sf.Web;
using Ks.Tessitura;
using Telerik.Sitefinity.Model;
using Telerik.Sitefinity.Security.Claims;
using Telerik.Sitefinity.Security.Data;
using Telerik.Sitefinity.Security.Model;
namespace SitefinityWebApp.Providers
@MerrittMelker
MerrittMelker / AssembyInfo.cs
Created August 6, 2015 03:11
Login Service For Sitefinity Example
using System.Reflection;
using System.Runtime.InteropServices;
using System.Web;
using Ks.Sf.Web.Bootstrap;
using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes;
[assembly: ControllerContainer]
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
@MerrittMelker
MerrittMelker / Default.cshtml
Created August 13, 2015 02:06
Example of Sitefinity Feather Navigation Custom widget
@model Ks.Sf.Web.Model.OpaHeaderController.OpaHeaderView
@using Telerik.Sitefinity.Services;
@using Telerik.Sitefinity.Modules.Pages;
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
@using Ks.Sf.Web.Mvc.Controllers;
@using ServiceStack
@using Telerik.Sitefinity.Frontend.Navigation.Mvc.Models
@{