我是Sitecore的新手,正在使用Sitecore 6构建我的第一个站点.
我创建了一个布局和一个子布局,并根据布局创建了一个新模板.我还根据模板创建了一个内容项.
我发布了所有内容,当我尝试访问该网站时出现错误.
错误是:找不到所请求文档的布局.
此错误仅在使用站点访问站点时发生,http://localhost/但站点在使用时按预期工作http://localhost/homepage.aspx.当然,我需要该网站工作,而无需指定文件名.
使用Fiddler请求的输出http://localhost/是:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fsitecore%2fservice%2fnolayout.aspx%3fitem%3d%252f%26layout%3d%257b00000000-0000-0000-0000-000000000000%257d%26device%3dDefault">here</a>.</h2>
</body></html>
Run Code Online (Sandbox Code Playgroud)
看起来我需要指定哪个页面是我的起始页面,但我看不到执行此操作的选项.
任何帮助,将不胜感激.
Sitecore是否使用HttpContext来保存对DB的不必要的调用?
特别是对于上下文项和数据库?
谢谢
我正在尝试为sitecore创建一个事件处理程序.
我已经完成了以下步骤.
<handler type="TestEventHandlers.EventHandler , TestEventHandlers" method="OnItemSaved"/>但我得到以下错误:
Could not resolve type name:
TestEventHandlers.EventHandler, TestEventHandlers.EventHandler
(method: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] parameters, Boolean assert)).
Run Code Online (Sandbox Code Playgroud)
我对处理程序的type属性中的程序集名称感到困惑.
我是Sitecore WCM的新手,并且一直在进行大量的研究和阅读.有人可以帮我澄清一下Sitecore的以下基础知识吗?
- 我有很多ASP.net Web应用程序.如果我将项目转换为Sitecore项目,它会神奇地工作吗?
- 如果我想创建新网站,我是否需要在IIS中手动创建新网站,或者我发布时Sitecore会这样做吗?
- 是否有任何在线培训视频,找不到一个(Sitecore营销演示除外).
- 如果我们有MVC和Web表单应用程序,是否可以迁移到Sitecore?
有没有人知道如何读取内部sitecore标志?(\ sitecore\shell\Themes\Standard\flags.zip)sitecore是否有一些API用于此操作?我想基于这个标志创建我的国家选择器.谢谢.
新手到sitecore.有人可以帮我理解下面的元素是如何工作的吗?并且,我需要什么样的场景来更新它.
<sites>
<site name="shell" virtualFolder="/sitecore/shell" physicalFolder="/sitecore/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" loginPage="/sitecore/login" content="master" contentStartItem="/Home" enableWorkflow="true" enableAnalytics="false" analyticsDefinitions="content" xmlControlPage="/sitecore/shell/default.aspx" browserTitle="Sitecore" htmlCacheSize="2MB" registryCacheSize="3MB" viewStateCacheSize="200KB" xslCacheSize="5MB" disableBrowserCaching="true"/>
<site name="login" virtualFolder="/sitecore/login" physicalFolder="/sitecore/login" enableAnalytics="false" database="core" domain="sitecore" disableXmlControls="true"/>
<site name="admin" virtualFolder="/sitecore/admin" physicalFolder="/sitecore/admin" enableAnalytics="false" enableWorkflow="true" domain="sitecore" loginPage="/sitecore/admin/login.aspx"/>
<site name="service" virtualFolder="/sitecore/service" physicalFolder="/sitecore/service"/>
<site name="modules_shell" virtualFolder="/sitecore modules/shell" physicalFolder="/sitecore modules/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" content="master" enableAnalytics="false" enableWorkflow="true"/>
<site name="modules_website" virtualFolder="/sitecore modules/web" physicalFolder="/sitecore modules/web" rootPath="/sitecore/content" startItem="/home" language="en" database="web" domain="extranet" allowDebug="true" cacheHtml="true"/>
<site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" domain="extranet" allowDebug="true" …Run Code Online (Sandbox Code Playgroud) 在我的Sitecore工作箱中,显示了几个工作流程状态.(草稿,等待,已批准)如何将访问权限仅限于Sitecore中特定角色(例如初级经理)的一个/几个(草稿)工作流程状态?
(我使用v6.5)
我在我的sitecore网站中集成了lucene搜索,该网站在内容树中的内容项下还有一个网站.我添加了一个新searchindex.config文件app_congif/include folder.我也改变了lucenesearch来源以获得siteroot
SiteRoot = database.GetItem("/sitecore/content");
Run Code Online (Sandbox Code Playgroud)
但搜索无效.表明:
无法找到结果项目
这意味着它没有得到任何东西/Standard_Items/Search_Results.这是我的searchindex.config:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<database>
<database id="master">
<Engines.HistoryEngine.Storage>
<obj type="Sitecore.Data.$(database).$(database)HistoryStorage,Sitecore.Kernel">
<param connectionStringName="$(id)"/>
<EntryLifeTime>30.00:00:00</EntryLifeTime>
</obj>
</Engines.HistoryEngine.Storage> <Engines.HistoryEngine.SaveDotNetCallStack>false</Engines.HistoryEngine.SaveDotNetCallStack>
</database>
</database>
<search>
<configuration>
<indexes>
<index id="SearchIndex" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">search_index</param>
<Analyzer ref="search/analyzer"/>
<locations hint="list:AddCrawler">
<resources type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<Database>master</Database>
<Root>/sitecore/content</Root>
<include hint="list:IncludeTemplate">
<template>{2A609D52-7B9F-49F3-83BE-047FD16397A7} </template>
<template>{F98712D8-27DB-4324-82E6-65242F0977F9} </template>
<template>{849CA304-3F51-4FCB-B9B3-2AC7E950B476} </template>
<template>{A87A00B1-E6DB-45AB-8B54-636FEC3B5523} </template>
<template>{52BDB3C4-0585-437C-89AD-6AAC81950633} </template>
</include>
<IndexAllFields>true</IndexAllFields>
<Boost>2.0</Boost>
</resources>
</locations>
</index>
</indexes>
</configuration>
</search>
</sitecore>
</configuration>
Run Code Online (Sandbox Code Playgroud)
这是我的内容树.我想搜索sitecore/content/DruBlue.
谁能帮帮我吗 ?
在我们的QA环境和prod环境中,我们有相同的部署(但不同的服务器环境).在PROD环境中,当我登录页面编辑器时,页面编辑器功能区会持续加载4分钟.一旦它加载它就可以了.但是,如果我再次导航到另一个页面,则功能区将加载4分钟.
在QA服务器中,一切都很好,这些部署彼此相同.只是想知道为什么它在PROD env中很慢.
有任何想法吗?
Sitecore版本6.6
日志说,
ManagedPoolThread #16 08:51:27 INFO Job ended: AllClassifieds.Web.Extensions.Agents.WebPublisher (units processed: )
1372 08:51:54 ERROR A potentially dangerous Request.Form value was detected from the client (leftpane_0$hdnFSClientState="<fsclientstate></fsc...").
Exception: System.Web.HttpRequestValidationException
Message: A potentially dangerous Request.Form value was detected from the client (leftpane_0$hdnFSClientState="<fsclientstate></fsc...").
Source: System.Web
at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_Form()
at Sitecore.Pipelines.PreprocessRequest.SuppressFormValidation.Process(PreprocessRequestArgs args)
Run Code Online (Sandbox Code Playgroud)
此错误会重复几分钟,直到加载页面编辑器.
我想找出当用户发布或重新发布内容树时是否发布隐藏项目的后代或本身隐藏项目的项目.
我知道这是一个非常基本的问题,但我无法在线找到答案,而且我目前没有设置其他角色和用户的实例来用于测试.
谢谢你的帮助!快乐编码:)
sitecore ×10
sitecore6 ×10
c# ×2
c#-4.0 ×1
httpcontext ×1
lucene ×1
lucene.net ×1
page-editor ×1
search ×1