我想从sitecore解决方案中的web.config文件获取全局设置,我在配置文件中写入设置并能够在showconfig中看到它的条目.当我试图获得它的价值时,却没有给出适当的价值.我的代码是这样的:
var newsBodyTemplateID = Sitecore.Configuration.Settings.GetSetting("NewsBody");
Run Code Online (Sandbox Code Playgroud)
我在这里失踪的东西可以解决它.
我正在玩动态占位符,并被一个预先填充的概念所震撼.有没有办法为我的一个占位符选择默认渲染,这将避免在经验编辑器中的"选择渲染"对话框?
场景:我有一个名为"PageHead"的渲染,它有三个渲染.其中一个是占位符"PageTeaserPh",它目前允许两个渲染:一个是"PageTeaser",第二个是"PageTeaserWithImage".我希望占位符"PageTeaserPh"始终将渲染选为"PageTeaser",因此避免使用"选择渲染"对话框.
我做了一些功课,并想知道这是否与标准值相关(我们可以在模板级别使用它;虽然不能确定渲染)并且我也听说过命令模板概念(不是深入的).
任何和所有帮助表示赞赏.
rendering sitecore contentplaceholder sitecore8 experience-editor
我想为WFFM表单字段类型添加其他属性.
我想将自己的部分和属性添加到此区域.这可以轻松完成而不会覆盖现有的字段类型或使用核心代码进行黑客攻击吗?
我真的不想重新创建例如单行文本字段,只是为了添加我自己的属性字段.
我想实现Sitecore应用程序(带有角度js的单页设计):
我将使用Sitecore 8.我发现这个有用的博客,但正如他所提到的,页面编辑器根本不起作用
谢谢.
将我的站点从7.1升级到8.1后,在expierence分析中删除任何页面时出现以下错误消息:
"由于服务器错误,无法显示'图表名称'图表.请与系统管理员联系."
以下调用在浏览器控制台上显示500错误:
我检查了日志文件,那里没有记录服务器错误!
更多信息:
错误消息:"ValueFactory尝试访问此实例的Value属性."
也
" at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetControllerMapping() at System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver constraintResolver, IDirectRouteProvider directRouteProvider) at System.Web.Http.Routing.AttributeRoutingMapper.<>c__DisplayClass2.<>c__DisplayClass4.<MapAttributeRoutes>b__1() at System.Web.Http.Routing.RouteCollectionRoute.EnsureInitialized(Func`1 initializer) at System.Web.Http.Routing.AttributeRoutingMapper.<>c__DisplayClass2.<MapAttributeRoutes>b__0(HttpConfiguration config) at System.Web.Http.HttpConfiguration.ApplyControllerSettings(HttpControllerSettings settings, HttpConfiguration configuration) at System.Web.Http.Controllers.HttpControllerDescriptor.InvokeAttributesOnControllerType(HttpControllerDescriptor controllerDescriptor, Type type) at System.Web.Http.Controllers.HttpControllerDescriptor..ctor(HttpConfiguration configuration, String controllerName, Type controllerType) at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.InitializeControllerInfoCache() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.GetControllerMapping() at System.Web.Http.Routing.AttributeRoutingMapper.AddRouteEntries(SubRouteCollection collector, HttpConfiguration configuration, IInlineConstraintResolver …
Run Code Online (Sandbox Code Playgroud) 当前,我们遇到一个问题,当在操作内引发异常时,一些对异步Controller操作的ajax请求会挂起。
通过当前正在执行的请求查看时,您可以看到以下信息
<REQUEST REQUEST.NAME="c500100080026ded" Url="/url" Verb="GET" Stage="SendResponse" Module="SitecoreAntiCSRF" Time="1602531" SITE.ID="2" WP.NAME="14268" APPPOOL.NAME="AppPool" />
Run Code Online (Sandbox Code Playgroud)
Content Delivery服务器上是否需要该模块?我可以完全删除它吗?如果我这样做会产生什么影响?
sitecore的版本:8 Update-5
我试着为不同的环境CD和CMS保留不同的配置文件,我可以使用任何工具或选项吗?
即时通讯使用vs2013与tfs.
谢谢
我读到sitecore 8.1具有运行仅CMS模式的选项(即没有xDB).
但是我没有在下面找到任何文档:
任何帮助都感激不尽.
我有一个自定义角色提供程序,用户可以在执行某些操作时更改特定用户的角色.
这导致了一些问题:
如果将角色添加到用户(允许他们访问页面),则在我使用手动清除sitecore缓存之前,这不会生效 /sitecore/admin/cache.aspx
我们正在缓存用户呈现的菜单栏.但是当权限更改时,可能会添加新项目/删除项目,但这不会反映出来,因为它来自缓存版本.
有没有办法可以通过编程方式清除特定用户的sitecore缓存?
我的客户给了我一个Sitecore网站进行性能测试。来自stackflow的信息。但是我很想知道测试Sitecore网站是否有区别?测试Sitecore网站的最佳做法是什么?关于性能测试范围的一点点:
感谢您的帮助。
sitecore ×10
sitecore8 ×10
angularjs ×1
asp.net ×1
asp.net-mvc ×1
c# ×1
caching ×1
rendering ×1
sitecore-mvc ×1
sitecore6 ×1
sitecore8.1 ×1
testing ×1
web ×1
web-config ×1