正如问题所述,我只是想在我的页面上显示一个图标。 我有一个模式叫司机: using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace TestSitecore.Models
{
public class Driver
{
//
需要关于Sitecore渲染的建议,我想使用glassmodel渲染该项目。 我有一个页面,并有很多渲染,并且每个渲染具有与之关联的数据源。 我知道下面的语句会给我当前的上下文,而不是数据源项。 var context = new SitecoreContext();
Model = context.GetCurrentItem<HomePage>();
什么是解决我的查询的最佳
返回“空字符串”我想展现的新闻标题为纽带 @using Glass.Mapper.Sc.Web.Mvc
@model MVC.com.Models.News
it works:<a href="@Model.Url">@Model.Title</a><br/>
it dosen't work : @Html.Glass().RenderLink(x => x.Url
我在理解如何在Sitecore EXM电子邮件组件中显示链接时遇到一些困难。 我正在使用Sitecore MVC控制器呈现。我本质上是试图复制主节组件,它是Sitecore EXM平台的默认组件。 于是开始与我有一个控制器MainSectionMVCController.cs: using System;
using System.Collections.Generic;
using Syst