我们目前正在运行Sitecore CMS 6.5(120706),其中安装了共享源Item Buckets模块:
我们希望升级到CMS 7.0版.我被告知目前没有升级路径,并期待在几个月内.但是我们宁愿不必等待.
项目桶仅用于我们网站的单个部分.其他所有内容都通过标准内容树提供.
我们曾尝试升级到6.6第一所要求的文件升级过程中,尽管它提后来在共享源代码项目桶模块是不幸中的说明不支持升级.确认这肯定不起作用,我们收到错误:
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Run Code Online (Sandbox Code Playgroud)
我们还尝试通过删除.config文件等来禁用项目存储桶,但我们还有其他问题,可能是因为项目存储桶更新所做的实际内容/数据模板更改.
我们正在考虑尝试干净安装CMS 7.0,然后使用Sitecore包迁移我们的自定义代码库,内容树中的项目(包括数据模板,布局,渲染等)以解决此问题.
有人可以验证这种方法,或者更好地建议一个不那么痛苦的解决方案!?
非常感谢
更新:我正在使用Sitecore 7.0版
到目前为止,我正在使用Glass.Mapper.Sc.我已经成功映射了许多模型.我现在只是尝试了我的第一个Query映射,无法让它工作.
我有以下两种型号
[SitecoreType(TemplateName = "Testimonial")]
public class Testimonial : ContentItem
{
[SitecoreField(FieldType = SitecoreFieldType.MultiLineText)]
public virtual string Summary { get; set; }
[SitecoreField(FieldType = SitecoreFieldType.RichText)]
public virtual string Testimony { get; set; }
[SitecoreField]
public virtual string Testifier { get; set; }
[SitecoreField(FieldType = SitecoreFieldType.GeneralLink)]
public virtual Link TestifierUrl { get; set; }
[SitecoreField]
public virtual string Company { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
和
[SitecoreType(TemplateName = "Testimonials")]
public class Testimonials : ContentFeatureItem
{
public Testimonials()
{
TestimonialList = …Run Code Online (Sandbox Code Playgroud) 我在sc:Image标签输出原始XML字段值而不是<img>我期望的标记时遇到了麻烦.它只发生在这一页上,但带有ItemType的Repeater是我在许多其他页面上完成的模式没有问题.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="MyProject.Web.TestPage" %>
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<table>
<asp:Repeater runat="server" ID="rptSublayouts" ItemType="Sitecore.Data.Items.Item">
<ItemTemplate>
<tr>
<td>
<sc:Image runat="server" Field="__Thumbnail" Item="<%# Item %>"
CssClass="thumbnail-image" MaxWidth="250" MaxHeight="250" />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
输出如下所示:
<tr>
<td>
<image mediapath="/MyImages/three-column-body"
mediaid="{343C5D5E-94C8-4D9A-B8E0-C65F89C0C155}"
src="~/media/343c5d5e94c84d9ab8e0c65f89c0c155.ashx?20140523T0953399715" />
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
有没有人见过这种行为?我怀疑这是一个很小的东西,我的眼睛今天早上没有看到.
我正在使用Sitecore 7搜索,我在代码中重建索引,我已经为此创建了一个代理,工作正常,索引重建需要15秒,我注意到索引重建时我无法搜索任何内容,搜索给了我0结果,我认为重建索引时会从索引文件夹中删除索引文件,是吗?如何在不删除现有索引文件的情况下重建索引?
从我读到的内容,Sitecore 7.2对MVC(5)有原生支持,我刚安装了一个新版本的Sitecore 7.2,在同一台机器上我安装了ASP.net 4.5和MVC 3,4和5.SQL Server也在同一台机器上运行(SQL Server 2008 R2 SP1),但是一旦我尝试在sitecore中创建新的渲染,就没有选项可以使用"views/razor views".我只能选择使用.ascx或xslt.
我错过了某种隐藏的配置吗?是否需要在同一台计算机上安装Visual Studio以支持MVC?
最好的问候,Inx
我有一个treelist字段,我想将数据源设置为3个文件夹pe:
/sitecore/Website/News/
/sitecore/Website/Events/
/sitecore/Website/Articles/
Run Code Online (Sandbox Code Playgroud)
在网站项下有更多"文件夹".
我搜索并花了几个小时尝试不同的方法,但似乎没有工作.
这可能吗?我需要扩展这个领域吗?
先感谢您
在sitecore Content Editor我想取消添加一个项目.所以我使用了Event Handler item:added并写了一个方法取消事件..但它现在正在工作,我已经花了这么多的努力,但没有任何线索.
这是代码:
public void MoreThenOneAddressAllowed(object sender, EventArgs args)
{
var item = Event.ExtractParameter<Item>(args, 0);
if (item.TemplateID.ToString() == Settings.GetSetting("AddressEntryTemplateID"))
{
if (item.Parent.Fields["More than one address allowed"] != null && item.Parent.Fields["More than one address allowed"].Value != "1" && item.Parent.Children.Count >= 1)
{
SitecoreEventArgs evt = args as SitecoreEventArgs;
evt.Result.Cancel = true;
Sitecore.Context.ClientPage.ClientResponse.Alert("More than one address not allowed under this item!!");
}
}
}
Run Code Online (Sandbox Code Playgroud)
这里是配置文件中的条目:
<event name="item:added">
<handler type="EventHandlers.CompanyEventHandler" method="MoreThenOneAddressAllowed" />
</event>
Run Code Online (Sandbox Code Playgroud)
我可以在内容编辑器中看到该消息.但是项目也被添加了,有些我想停止添加项目.
我想知道是否有一个内置的方法来从JavaScript中的Sitecore获取/检索字典项.我们有一些需要在JavaScript小部件中翻译的文本.
我有一个名为"A"的Sublayout,我有更多的内容项.我只是想找出"A"Sublayout分配给哪个内容项.我怎样才能做到这一点.?
在templateItem中,我有一个字段的以下信息.
Name : Product type
field type : 'Droplink'
DataSource : DataSource=/sitecore/content/Enumerations/Products/Product type/
Run Code Online (Sandbox Code Playgroud)
当内容编辑器基于上面的模板创建项目时,对于Product type下拉列表中的字段' ',他将看到下面的项目../Product type.我的问题是在下拉列表中显示的项目如何显示其他字段而不是项目名称
sitecore ×10
sitecore7 ×10
sitecore7.2 ×3
asp.net-mvc ×1
datasource ×1
find ×1
glass-mapper ×1
indexing ×1
lucene ×1
sitecore6 ×1
treelist ×1
upgrade ×1