sitecore6

How to display a popup when saving a Sitecore item?

那年仲夏 提交于 2019-12-22 08:57:59
问题 When saving a Sitecore item I am trying to display a popup to interact with the user. Depending on data that they have changed I may display a series of 1 or 2 popups asking them if they want to continue. I have figured out how to tap in to the OnItemSaving pipeline. That is simple. What I can't figure out is how to display a popup and react to the input from the user. Right now I am thinking that I should be using the Sitecore.Context.ClientPage.ClientResponse object somehow. Here is some

Sitecore allow role to publish content in specific areas only

与世无争的帅哥 提交于 2019-12-22 07:08:46
问题 I am trying to create a role within Sitecore which can publish content, but only within a specific area(s) of the site. I've added the standard Sitecore\Client Publishing role to my role, but I can't see how to prevent the role from being able to publish all areas of the site. I've looked at the Security editor and the Access viewer, but setting the write access of the sections only seems to affect the ability to edit those sections and has no effect on the ability to publish on those

How to use internal links with wildcard items in Sitecore?

我只是一个虾纸丫 提交于 2019-12-22 06:33:31
问题 I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL. This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL. Does anyone know of a

Upgrading sitecore 6.6 index configuration to sitecore 7 (using ComputedFields)

笑着哭i 提交于 2019-12-22 05:11:56
问题 Sitecore CMS+DMS 6.6.0 rev.130404 => 7.0 rev.130424 In our project we have been using AdvancedDatabaseCrawler (ADC) for our indexes (specially because of it's dynamic fields feature). Here's a sample index configuration: <index id="GeoIndex" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">$(id)</param> <analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <web type="scSearchContrib.Crawler.Crawlers.AdvancedDatabaseCrawler,

How to get content of rendering programmatically?

社会主义新天地 提交于 2019-12-22 04:09:31
问题 I am attempting to write a method that will output the content (i.e. HTML) for any renderings that happen to exist within a specific placeholder. The goal is to pass in a Sitecore.Data.Items.Item and the placeholder key that i'm interested in, and the method should return the rendered content. The issue with this seems to be that there is no page context established, and therefore calling RenderControl() is throwing a null reference error in the GetCacheKey() method of the Sublayout. Is

Sitecore Database and App_Data Size

落爺英雄遲暮 提交于 2019-12-21 18:11:46
问题 We have 5 relatively small sites running on top of Sitecore. The oldest has been hosted within the environment for 3 years. Currently both the master and web databases are roughly 8 GB a piece - surprising in size but also that they are nearly identical in size (I would expect the web database to be much smaller). Also surprising is the App_Data is over 50 GB in size (MediaCache is 15 GB and MediaFiles is 37 GB). Any ideas or suggestions on ways to reduce files on disc - even temporarily? 回答1

ASP .Net File Upload Maximum request length exceeded error

本小妞迷上赌 提交于 2019-12-21 12:04:32
问题 I have a simple ASP .Net file upload control on a page. I have following web.config settings <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="524288000" /> </requestFiltering> </security> </system.webServer> <system.web> <httpRuntime maxRequestLength="524288" executionTimeout="120000" /> </system.web> I am using IIS 7.5 on my dev box and IIS 7 on web server. If i upload file of size 7MB, it works fine. But when i upload file which is 10MB, it will throw

Sitecore has no necessary permissions for reading/creating counters

二次信任 提交于 2019-12-20 18:26:15
问题 In the Sitecore (6.6 v130404) log file there are so many "Sitecore has no necessary permissions for reading/creating counters." records being created. I have disabled the performance counters in the server. <!-- ENABLE COUNTERS Indicates if performance counters are enabled. Default value: true --> <setting name="Counters.Enabled" value="false"/> Log extract: (For every 6seconds this keeps updating the log) Heartbeat 19:07:33 WARN Sitecore has no necessary permissions for reading/creating

Sitecore Insert rules to ensure at most (1) children of a certain type

帅比萌擦擦* 提交于 2019-12-20 14:45:10
问题 Is there way in sitecore to ensure that a certain type of item can only have 1 child of a certain type of item? I'm reading the rules engine cookbook, but I'm not getting much details. 回答1: One of the sites I worked on had a requirement that no more than 6 child items could exist below a certain item type. We considered using an insert option rule, but decided to abandon the idea because it did not prevent copying, moving, or duplicating items. Instead we decided to extend the item:created

What inbuilt parameters can I access in Sitecore XSLT? How should I expose global settings I need?

十年热恋 提交于 2019-12-20 04:12:21
问题 Is there a list of inbuilt parameters available to Sitecore XSLTs? I've looked around but haven't seen anything that looks like a full list, at least not in comparison to the sort of data a .NET component can access directly. Using XSLT out of the box in Sitecore seems a little limited in respect to the data it can easily access in comparison to .NET presentation components. I'm specifically interested in being able to access various pieces of information relating to running multiple sites