我们有一个渲染列出当前项目中TreeSelect中的选定项目.我们称之为"标签"(1)
我们在组件中添加了一个Field Editor按钮,让编辑器更改所选项.(2)(如例如添加自定义组件所述)
当编辑器单击(2)编辑器窗口(3)时,它将在对话框中打开.编辑器可以使用TreeSelect选择不同的项目(在我们的例子中称为标签).
当编辑器按下ok按钮(4)时,将设置值.
现在来问题:
当编辑器按下保存按钮时,这些值实际上是在它们被存储时设置的,但我们希望页面(1)上的列表在编辑器按下确定按钮(4)时立即反映设置项目,即在实际需要之前保存整个项目.
我们如何实现这一目标?
(我与Sitecore支持联系,但到目前为止我还没有得到任何答案...)
更新 经过与支持人员的大量对话后,我们仍然没有有用的解决方案.
我们尝试将其转换为显示链接的字段渲染器.有用的是:
<command name="webedit:fieldeditor" type="Sitecore.Shell.Applications.WebEdit.Commands.FieldEditor, Sitecore.Client"/>
并设置单击按钮webedit:fieldeditor(command={3473DDA1-2983-493C-AF7A-054C75AA7AD3},fields=NameOfField
指向guelf指向其自身的位置,并在其上设置"图标".)什么不起作用是:
支持的问题变成了一个功能请求,让服务器参与渲染字段,而不仅仅是向JavaScript发送新值来更新它.服务器执行第一次渲染,因此当它已经参与更新时,应该允许它在以下时间进行渲染.
我们决定现在不花更多的时间在这上面(我们还有其他事情要做.)并且编辑经验不好,因为在编辑器实际保存项目之前,字段不会更新.
我们仍然没有适合这个问题的解决方案.如果你想继续努力并希望引用我的问题,那就是439059.
我有一个Sitecore体验平台(Sitecore版本8,外行术语),我不想使用Analytics.当我查看Sitecore Experience时,整个分析都是如此.我想以"干净"的方式禁用Google Analytics,但对于Sitecore 8,我理解它的方法不同.什么是正确的方法?
注意:是的,我知道:
<setting name="Analytics.Enabled" value="false" />
是的,我在Stack Overflow上看到了看似相关的问题.
先感谢您!!萨沙
我收到了这个错误
缺少必需的许可证:运行时
我检查了数据文件夹路径
<sc.variable name="dataFolder" value="C:\Path\Data" />
Run Code Online (Sandbox Code Playgroud)
和许可证文件设置
<setting name="LicenseFile" value="$(dataFolder)/license.xml" />
Run Code Online (Sandbox Code Playgroud)
还检查权限都是正确的但仍然是给出错误.
只需阅读下面的索引更新策略文档,但无法得到关于哪种策略最适合SOLR搜索实现的明确答案:
https://doc.sitecore.net/sitecore_experience_platform/search_and_indexing/index_update_strategies
我们已经设置了主要和从属Solr端点,其中master将用于创建/更新.和奴隶只读.
感谢您是否可以建议将索引策略用于:
内容创作
内容交付
解决方案托管在azure Web应用程序中,内容交付可以随时从1-N号码放大或缩小.
我打算在下面配置:
感谢您是否可以建议一个适合您的解决方案.另外我们如何禁用索引策略?
谢谢.
我正在使用Sitecore 8.0 Update 5.每次我使用英语以外的语言进行"智能"发布时,我都可以看到数千个项目正在更新.
Job started: Publish to 'web'
Items created: 0
Items deleted: 0
Items updated: 56207
Items skipped: 13057
Job ended: Publish to 'web' (units processed: 69258)
Run Code Online (Sandbox Code Playgroud)
我已经启用了跟踪,在日志中我可以看到Sitecore更新了这些项目的共享字段
##Publish Item: Name=sitecore, Uri=sitecore://master/{11111111-1111-1111-1111-111111111111}?lang=zh&ver=1, Operation=Updated, ChildAction=Allow, Explanation=Shared fields were published.
##Publish Item: Name=templates, Uri=sitecore://master/{3C1715FE-6A13-4FCF-845F-DE308BA9741D}?lang=zh&ver=1, Operation=Updated, ChildAction=Allow, Explanation=Shared fields were published.
##Publish Item: Name=List Manager, Uri=sitecore://master/{D2833213-CB77-431A-9108-55E62E4E47FD}?lang=zh&ver=1, Operation=Updated, ChildAction=Allow, Explanation=Shared fields were published.
Run Code Online (Sandbox Code Playgroud)
对于树中的每个项目,列表都是这样的.有了dotPeek,我能够在发布管道中找到一个负责确定发布操作的方法:
private void HandleSourceVersionNotFound(Item sourceItem, PublishItemContext context)
{
Assert.ArgumentNotNull((object) sourceItem, "sourceItem");
Item targetItem = context.PublishHelper.GetTargetItem(sourceItem.ID);
if (targetItem != null) …
Run Code Online (Sandbox Code Playgroud) 我有这个与Tracker有关的问题.
[InvalidOperationException: Tracker.Current is not initialized]
Sitecore.Analytics.Pipelines.StartAnalytics.StartTracking.Process(PipelineArgs args) +304
(Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484
Sitecore.Analytics.Pipelines.StartAnalytics.StartAnalyticsPipeline.Run() +293
Sitecore.Mvc.Analytics.Pipelines.MvcEvents.RequestBegin.StartTracking.Process(RequestBeginArgs args) +139
(Object , Object[] ) +74
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484
Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +184
Sitecore.Mvc.Routing.RouteHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +74
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +923
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157
Run Code Online (Sandbox Code Playgroud)
在web.config我是
enableTracking = "真"
如果我设置为false它可以工作,但没有跟踪
我有一个Sitecore站点,在我的两个CD服务器上,Url.Action
返回一个空字符串.这适用于本地和其他9个服务器,从开发到产品,CD和CM.
部署自动化确保将完全相同web.config
的部署到所有环境中; 同样适用于所有其他配置.
我的控制器继承SitecoreController
正确.这不会与某个控制器或操作隔离,所有控制器和操作都会发生这种情况.
什么会Url.Action
在一个环境中返回一个空字符串而不是其他环境,使用相同的代码?
我想调试Sitecore代码就像asp.net代码,但不知道如何.
解决方案在wwwroot之外.使用Visual Studio 2013,IIS 10.0,Windows 10,Sitecore 8
附加一个进程,是我需要做的就是能够调试.
在Visual Studio中,当我单击工具>附加进程时,没有aspnet_wp.exe或w3wp.exe.
还有其他流程要遵循.
我有一个使用此方法的sitecore应用程序:
@Html.Sitecore().ViewRendering("Path to the View")
@Html.Sitecore().Controller("Controller Name", "Controller Action")
Run Code Online (Sandbox Code Playgroud)
即使我没有在Sitecore CMS中为该渲染创建项目,这也完美无缺
那么该方法与简单的ASP MVC方法有什么区别:
@Html.Partial("Path to the View")
@Html.Action("Controller Name", "Controller Action")
Run Code Online (Sandbox Code Playgroud)
两者相同与否?我觉得这里有点困惑
我尝试在Sitecore 8.2更新4中安装Sitecore体验加速器和Ucommerce,但我收到以下错误.
我在安装的最后一个软件包上收到错误.无论是ucommerce还是Sitecore Experience Accelerator.
有没有人尝试过使用UCommerce的Sitecore Experience Accelerator(SXA)?
以下详细信息是我使用的sitecore包:
Sitecore 8.2更新4或Sitecore 8.2更新3
Sitecore Experience Accelerator 1.0到1.4
最新版本的ucommerce-for-sitecore-7.7.1.17180
Sitecore电源Shell 4.6