3

我们第一次使用 SitEdit 2009 SP1 为 Tridion 2011 SP1 实施了带有 DD4T 的 SiteEdit,我们从 SiteEdit 收到一条消息“正在加载组件和模式”​​,它不断给出这个消息,我们无法编辑内容仍在加载。任何人都可以让我知道这个问题吗?

页面来源:

<!DOCTYPE HTML>
<html>
<head>
    <title>News</title>
    <link href="/FirstDD4TMVCApplicationsiteedit/Content/Site.css" 
          rel="stylesheet" type="text/css" />
    <script src="/FirstDD4TMVCApplicationsiteedit/Scripts/jquery-1.4.4.min.js"
            type="text/javascript"></script>
    <link href="/SiteEdit/App_Themes/SiteEdit/Calendar.css" type="text/css"
          rel="stylesheet" />
    <link href="/SiteEdit/App_Themes/SiteEdit/SiteEditBorders.css" 
          type="text/css" rel="stylesheet" />
</head>
<body>
<div>
  <span>
    <!-- Start SiteEdit Component Presentation: {"ID" : "cp_1", "ComponentID" : "tcm:8-31855", "ComponentTemplateID" : "tcm:8-31851-32", "ComponentVersion" : 1, "IsQueryBased" : false  } -->

    <div>
      <span>
        <!-- Start SiteEdit Component Field: {"ID" : "ContentHeading1", "XPath" : "tcm:Content/custom:Content/custom:Heading[1]", "IsMultiValued" : false} -->
        Hello this is test
        <h3>TestNews</h3>
      </span>
    </div>
  </span>
</div>
<div>
  <!-- SiteEdit Settings: { "PageID" : "tcm:8-31856-64", "PageVersion" : 2, "TargetTypeID" : "", "ComponentPresentationLocation" : 1}  -->
</div>

</body>
</html>

还有一个问题:在使用 DD4T 时由 SiteEdit 自动生成的 SiteEdit 页面标签中的以下标签及其属性有什么意义?

"BluePrinting" : {"PageContext" : "tcm:0-0-1", "ComponentContext" : "tcm:0-8-1", "PublishContext" : "tcm:0-8-1" }
4

2 回答 2

4

问题得到解决 :) 我们只需要将 span 标签包围或添加到 SiteEdit 标签。

例如

<span>
@Html.SiteEditPage(Model)
</span>

快乐编码!

于 2012-06-05T11:58:56.637 回答
0

Compare in IIS Manager the following virtual directories under

[CME Website]/WebUI/Editors

[CME Website]/WebUI/Models

With

[SiteEdit Website]/WebUI/Editors

[SiteEdit Website]/WebUI/Models

Those directories should contain the same items/structure. If not, I have seen that error happening.

The forever "Loading components and Schemas" also can happen if popup window that SiteEdit pops during login is blocked by a popup blocker.

于 2012-06-04T15:24:16.977 回答