sitecore6

Retrieving Sitecore items Position A in the content tree and to the user in Position B

拈花ヽ惹草 提交于 2019-12-11 02:11:54
问题 Given the following content tree, how could I associate Dealerships with Cars so that I can get a URL like this? http://website/Dealerships/JimWhite/Ford I need to be able to have the content viewable and editable under cars, but automatically updated under the dealerships. I assume there is some kind of link I can do? Home Cars Ford Honda Toyota Dealerships JimWhite TomJones 回答1: Take a look at this document on SDN, especially the chapter about Sharing and Reusing Items and Field Values

how to load css classes from my own project specfic css in Sitecore's RAD editor?

本秂侑毒 提交于 2019-12-11 01:01:13
问题 how to load css classes from my own project specfic css in Sitecore's RAD editor? I want to give option to client to add predefined css class to any needed element. 回答1: Put the css in default.css in your websites' root folder and restart IIS. Sitecore RAD editor should pick up the classes, although we found it could take a couple of restarts. 回答2: Depending on the version of Sitecore you're using there's different ways since in 6.4 there is a new wysiwyg from Telerik's updated library. pre 6

How to insert custom Javascripts in Sitecore backend

别等时光非礼了梦想. 提交于 2019-12-10 21:34:59
问题 Pretty simple, I need to insert a script in Sitecores (v. 6.4) backend - how do I do it? It doesn't matter if the script is placed inside <head> or <body> , nor does it matter if I can only specify the src of a <script> tag or if I can insert an actual Javascript snippet (the latter is preferable though). The script needs to be inserted in the HTML when a Content Editor window is opened. It is not an installation of my own, nor do I develop anything for Sitecore (I do have admin access,

Can't insert a Web Forms For Marketers form because there are no Placeholders

无人久伴 提交于 2019-12-10 21:34:29
问题 We are trying to fix an old issue with our Web Forms for Marketers module (I think it is 2.2, but I don't know how to tell) in Sitecore 6.4.1 running .NET Framework 2.0. I am having trouble even adding a form to an item. I am making an assumption that I should be using the "Insert Form" button in the presentation tab of my item. When I click that button I get a wizard that goes fine until it tells me the following: "There are no allowed placeholders in order to insert a new form." Ignorning

Set MediaItem on ImageField

允我心安 提交于 2019-12-10 20:24:20
问题 Currently mediaItem.Src is throwing an obsolete warning and states using the MediaItem property instead. The mediaItem.MediaItem has no setter though. Is this warning really just to get people to use something like: var image = new Sitecore.Data.Items.MediaItem(imageField.MediaItem); Sitecore.Resources.Media.MediaManager.GetMediaUrl(image); Is .Src (and related field properties) still the recommended way to actually set the field's value? 回答1: I believe you'd set the media ID instead of the

Conditional fields using web forms for marketers?

笑着哭i 提交于 2019-12-10 17:16:29
问题 I need to show/hide a field based on the value entered in another field. The field that is conditionally made visible also needs to be a mandatory field. Is this possible using WFFM? Will I need to do it using custom fields? Thanks! 回答1: You would need to build a custom complex type to do this. You might be able to re-use existing field types in your custom type, but it would probably be simpler to create them specifically for the new complex type. 回答2: You can use JQuery for this and also

Implementing Sitecore Multisite Robots.txt files

≯℡__Kan透↙ 提交于 2019-12-10 15:41:09
问题 How to implement to have different robots.txt files for each website hosting on the same Sitecore solution. I want to read dinamically robots.txt from sitecore items. 回答1: you need to follow next steps: 1) Create and implement your custom generic (.ashx) handler. 2) In the web.config file add the following line to the section 3) Navigate to the section and add here 4) On home item you will have "Robots" field (memo, or multi line field, not richText field) Your custom generic handler will

Sitecore presentation details don't update on template change

非 Y 不嫁゛ 提交于 2019-12-10 14:27:24
问题 I'm working on a Sitecore (6.4.0.101124) site that has two templates used for the home page. These have a very similar structure - the big difference between them is that they each have one different sublayout in the Controls section of the Presentation Details of the Standard Values. My understanding is that when the template is changed on an item the standard values of the template should be applied to that item. However, when the content editors change the template the presentation details

How to programmatically populate Sitecore items (Add item and fields)?

孤人 提交于 2019-12-10 14:22:17
问题 I'm now battling with adding items via C# to Sitecore database. The code below executes correctly, however the items aren't being created. Also, I noticed, that the item["FieldName"]=value; syntax doesn't actually populate the Fields collection. And Fields collection on the item seems read only, so I can't just call .Add on it (such method doesn't exist). So - what is the correct way of creating a child item and populating its fields? I am using the Master database for both the Sitecore

How can I make sitecore showing an image (or other resources)

徘徊边缘 提交于 2019-12-10 10:54:52
问题 I installed clean Sitecore 6.6 and enabled MVC support using this guide. So my environment is Sitecore 6.6, ASP .NET MVC 3 and Razor, Microsoft SQL Server Express 2012, IIS 7.5 and I'm using Microsoft Visual Studio 2012 Express for Web. I have following code: @Model.PageItem.Fields["Title"];<br /> @Model.PageItem.Fields["Image"].GetValue(true, true);<br /> @Model.PageItem.Fields["Text"];<br /> Sitecore.Data.Items.MediaItem item = Model.PageItem.Fields["Image"].Item; @Sitecore.StringUtil