sitecore6

Sitecore uses “302 found” to redirect users to my custom 404 page - is that legitimate?

房东的猫 提交于 2020-01-21 04:41:08
问题 This is more of a HTTP spec question than a Sitecore question. I have a 404 error page set up in Sitecore: <setting name="ItemNotFoundUrl" value="/404.aspx" /> So, when a user accesses a non-existent page (e.g. www.example.com/xyz) they get redirected to my custom 404 page (e.g. www.example.com/404.aspx). Sitecore performs the redirect using a 302 as seen in the Firebug screenshot below: Is this a problem? i.e. will Google and other search engines index my 404 page at the URL www.example.com

How to get a reference to the currently edited item when inside a custom field in Sitecore

感情迁移 提交于 2020-01-17 03:21:31
问题 In Sitecore I have created a custom field (via this recipe: http://sdn.sitecore.net/Articles/API/Creating%20a%20Composite%20Custom%20Field/Adding%20a%20Custom%20Field%20to%20Sitecore%20Client.aspx) The field is for use in the content editor. The custom field has a menuitem attached (the little textbutton rendered just above the field) The custom field work as expected and the menuitem hooks into code in the custom field class as it should. However, the logic I need to implement for the

Sitecore ECM Newsletter: ECM generate different values for links inside message when click on Dispatch and Test button

╄→гoц情女王★ 提交于 2020-01-14 19:50:12
问题 I have ECM NewsLetter with some links to site (another Items). When I send this Newsletter to my email by click on Dispatch button - links don't work when I click on them from the email inbox. It displays 404 not found error. But in ECM, if I click on Test button and type an email address, then go to inbox - the links works. Link - when clicked on Dispatch message button looks like: (after ec_camp there's no nulls) http://www.site.com/sitecore/RedirectUrlPage.aspx?ec_url=mypage.aspx&ec_camp

How to use sitecore query in datasource location? (dynamic datasource)

久未见 提交于 2020-01-13 02:25:21
问题 Is it possible to set the datasource location (not the datasource) to be a sitecore query? What I'm trying to do is to have the sublayout set its datasource location to a folder under the item containing it (current item). The sublayout datasource location should point to a folder under the current item. So I tried setting the datasource location to query:./Items/* but that did not work. 回答1: You don't need the query -- the sublayout datasource location can simply use a relative path. e.g. .

Sitecore: Seemingly Random errors appear

北慕城南 提交于 2020-01-05 07:16:42
问题 we are experiencing some very odd errors in our installation. Some times out of nowhere Sitecore throws an error: Assert: Value Cannot be null. Parameter: Item. The closest i have come to identifying the problem is narrowing it down to either an index or the web database. Anyway, if I log into sitecore the Item is just missing, i can fix it in 3 ways: Rebuild the index. Recycle app pool iisreset Does any of you have an idea why this might be happening? We are running Sitecore.NET 6.5.0 (rev.

Sitecore: Seemingly Random errors appear

若如初见. 提交于 2020-01-05 07:16:07
问题 we are experiencing some very odd errors in our installation. Some times out of nowhere Sitecore throws an error: Assert: Value Cannot be null. Parameter: Item. The closest i have come to identifying the problem is narrowing it down to either an index or the web database. Anyway, if I log into sitecore the Item is just missing, i can fix it in 3 ways: Rebuild the index. Recycle app pool iisreset Does any of you have an idea why this might be happening? We are running Sitecore.NET 6.5.0 (rev.

Sitecore grouped droplist

删除回忆录丶 提交于 2020-01-05 07:11:42
问题 I have two droplist fields for a template. In the content editor, I want it so that the value of the second droplist is dependent on the first droplist. I.e. something like a country/state control. Is there a way to do this? 回答1: There is nothing out of the both that will give you this functionality. You need to create a custom field and implement it. EDIT: Here is the implementation of a category / subcategory field I have in a sitecore installation public class CategoryPicker : Control,

What's a good way to set the Item or DataSource attribute of a FieldRenderer?

依然范特西╮ 提交于 2020-01-01 06:43:06
问题 The scenario is that I have a lot of FieldRenderers. These should output data from various places, some from item X and others from item Y. And should be outputting properties from item Z. Assuming I have a public property ItemX that I want to output a property from, any of the following would be OK. But I get no output by any of them: <sc:FieldRenderer runat="server" FieldName="Logo" DataSource="<%# ItemX %>" /> <sc:FieldRenderer runat="server" FieldName="Logo" DataSource="<%= ItemX.Paths

Programmatically removing sublayouts in Sitecore

心已入冬 提交于 2019-12-31 02:03:38
问题 Does anyone know how to remove the renderings from a Sitecore item? I want to remove all of the sublayouts so I can replace them with a new set. I have tried this but it does not seem to work. Nothing changes on the item. I appear to be able to get the renderings like this: RenderingReference[] renderings = item.Visualization.GetRenderings(Sitecore.Context.Device, true); But there appears to be no way to then set them. I can also get the renderings like this (from the link above):

Azure a connection attempt failed

試著忘記壹切 提交于 2019-12-25 18:38:40
问题 I've a sitecore azure deployment 2.0. Unfortunately, when I try to run this from company network I get the error below: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 213.199.180.206:80 When I try below on the same machine it works: http://www.google.com https://www.google.com Wondering what exactly is causing the above issue given both 443 and 80 works well