Hot answers tagged

25

Sitecore supports two ways to render the Content Editor. Standard Sitecore Render Themed XML Skin Rendering The pipeline you want to focus on is <renderContentEditor>. You'll find the following: For the purpose of this answer, I'll focus on how to override the Standard Content Editor. I would probably advocate for using the Theme/Skinning ...


9

I do this using Experience Profile Express Tab code. It allows you to add a custom tab to the contact in experience profile. Then you just load your facet into it. You can put anything in the model. In the code below I am pushing 3 different facets into it. What the code does is looks for any model that is inheriting from the class EpExpressViewModel. If ...


6

Yeah, you are right, ItemTreeView doesn't support external source. I ran into this during imlementing a module where I've overrided a the defoult select rendering dialog but the "TreeViewEx" control is used there. It is a bit different with control that you are going to customize, but the meaning of changes is the same You actually need to override (my ...


6

This is a common issue with the Sitecore Preview mode when the website site definition has gone missing. In versions of Sitecore through 8.0 and lower (I'll edit with exact revision number), the website site definition is hardcoded in the bowels of the Sitecore code, which means if you are trying to remove it, it can cause issues. In versions of Sitecore ...


5

You would have to perform request to the server to check whether your current template meet certain criteria. Request class: using Sitecore.ExperienceEditor.Speak.Server.Contexts; using Sitecore.ExperienceEditor.Speak.Server.Requests; using Sitecore.ExperienceEditor.Speak.Server.Responses; namespace Sitecore.Modules.ExperienceEditor { public class ...


4

In the Sitecore.Configuration.SpeakSettings I found: public static bool IsProductionMode { get { return Settings.GetBoolSetting("IsProductionMode", false); } } and above propery is used in : // Sitecore.Shell.SettingsHost public virtual bool IsProductionMode { get { return SpeakSettings.IsProductionMode; } } But anywhere in the ...


4

EDIT: Update based on comments If you check the definition of LogoutArgs used in the processor, there is a property called RedirectUrl that is of type: Sitecore.Text.UrlString - if you set this property in your processor, that should then be processed by the JavaScript section: $.ajax(ajaxSettings).done(function (data) { window.location = JSON.parse(data)...


4

As you already noticed Experience Editor utilizes SPEAK, but Content Editor "is not there yet". I am not sure whether you can have single code to handle both locations. I would go partially SPEAK and Sheer but it depends what you want to achieve. In Experience Editor you can extend front-end pipeline written in SPEAK (/sitecore/client/Applications/...


3

The simple answer is that when Sitecore redesigned the content editor for 8.0, they removed icons from the sections, probably to keep the design cleaner.


3

To start off, I would always recommend training for someone who needs to make use of a WCMS platform before they go in. There is always going to be so much involved. One option is using the sitecore apis you could always create a Wizard Tool that works through content creation or managing content for certain pages. The cost and time effort of that would be ...


3

If you know what is the ID of an item you click on you can simply redirect user using this url: http://domain/sitecore/shell/Applications/Content%20Editor.a‌​spx?sc_bw=1&fo=ID, where ID value in a query string is an id of an item you want to open for example: http://domain/sitecore/shell/Applications/Content%20Editor.a‌​spx?sc_bw=1&fo={...


3

with in Sitecore.ExperienceEditor.Speak.Server.RequestArgs class the method name to execute defaults to Process. Check the last line in below method. public RequestArgs(string commandPath, NameValueCollection queryString, string data) { Assert.ArgumentNotNull(queryString, "queryString"); this.QueryString = queryString; this.Data = data; string[...


3

I'm glad that Sitecore is now aware of the bug and it will provide a official fix I made a blog about this a couple months ago with the detailed Discussion and the research of the issue https://errorcotidianam.wordpress.com/2018/04/30/sitecore-9-1-datepicker-displaying-wrong-format/ I will also update my blog post with this version provided from Sitecore ...


3

You can easily achieve this by using Sitecore Powershell. If Sitecore Powershell is an option, you can easily create a dialog with SPE and also perform an upload of files. The below script will allow you to specify the folder you want to store the csv file and also whether the user can overwrite existing file. $props = @{ Parameters = @( @{ Name ...


3

You can make use of the below command in the Javascript file to open the Content Editor. window.top.scForm.postRequest('','','','RunShortcut("{E28353A0-FB68-455B-9B2E-99AD280EF64E}")');


3

As @MarekMusielak mentions in his comment, you will need to use Sitecore Rocks to edit the presentation details of core database items. Open an item's presentation details Edit the presentation details


3

Answer The direct answer to this question is that there is no way to build a SPEAK application without using Sitecore items. This is because using items out of the core database is the foundation upon how/why SPEAK was written. It was intended to be a pattern that utilizes Sitecore structure, association to datasources, and presentation rendering in order ...


2

Here's what I ended up doing. I'm sure there's a way to do it in one step though (somehow emulate a shortcut pointing to an item?). If that ever gets posted I'll accept that answer. This does it in multiple steps with a lot of assumptions. It opens a content editor window using the default content editor window id which should be fine. The sketchier parts ...


2

You can open a SPEAK dialog using the SheerResponse.ShowModalDialog command. Example: SheerResponse.ShowModalDialog(new ModalDialogOptions(url) { Width = "100", Height = "200", Response = true, ForceDialogSize = true }); The url parameter is the Sitecore path of the SPEAK page, e.g: /sitecore/client/applications/dialogs/myPage This should work if ...


2

The reason why on Page Load it does not trigger the JavaScript is because you need to set the PostponedCall value to false Using Sitecore Rocks, on the rendering SmallCheckButton, view the Properties window and scroll down up to the Event Section. Then, in the field PostponedCall, set the value to false. A screenshot is provided below: Your JavaScript ...


2

I was able to get this off the ground as a speak application but I had to use FormData to pass it off to a controller. Here are the steps I took: I added a UploaderInfo rendering to my speak application. Then in my js instead of using the Uploader control I got the file by using my upload info field. I created a FormData object and appended it to that. Here'...


2

Sitecore 8.2u1 Previously InsertLinkButton values were populated with InsertLinkButtonRule (rule item id: {CEDD4633-193B-4D79-8DCC-C49B3C8D0F53}). Where TargetControl of this rule is InsertLinkButton and Trigger click Action ID is {D4BA15D6-263A-43E6-93DD-CE9E41C7D8E4} and it still exists in Sitecore 8.2u2 (/sitecore/client/Business Component Library/...


2

I found something to go off of with the validation button in the Experience Editor's ribbon which also opens a modal. Copied that item that represented the validation button and edited some fields in the presentation details of the large button. I had to edit the command which had to point to my javascript command. I also needed to edit the ...


2

This feels like a ton of hacking to pass some parameters. I opted to pass the ribbon id instead of individual field values because I ended up needing more parameters. Adding the id of the ribbon button to attributes: namespace Common.CustomSitecore.Speak.Controls { public class UpdateButton : Sitecore.ExperienceEditor.Speak.Ribbon.Controls.LargeButton....


2

According to the help desk, yes you still have to edit the file. \sitecore\shell\client\Business Component Library\Layouts\Renderings\Common\DatePickers\DatePicker.js But instead of fixing the hard-coded date format to your desired format, update this line: this.model.set("dateFormat", "mm/dd/yyyy"); To this: this.model.set("dateFormat", this.$el.attr("...


2

I found the cause of the problem. In the UploadButton rendering, the click event needs to be set to "javascript:app.Uploader.viewModel.upload()" (where "Uploader" is the ID of the uploader rendering). I had only entered "upload" in this field.


2

The way to do this is to create a rendering in the Core database and add it to the Launchpad application's presentation details using Sitecore Rocks. Note: this has only been tested on Sitecore 8.1 update-3, though it's likely to work with other versions. Add a rendering in the Core database In the core database, add a new controller rendering below /...


1

I believe this is not possible in Speak 2 based on documentation from Sitecore. It is stated here that ListControl control supports a number of behaviors: EndlessPageScroll, MultiSelectList, and Scrollbar. Both EndlessPageScroll and Scrollbar are dependent on height of your ListControl not width. See more about Scrollbar here and about EndlessPageScroll ...


1

As far as I see this is not really supported without hacking Sitecore. The LargeButton has his own .js and .cshtml which is collecting the properties from the core database. Exactly in the following folder: \sitecore\shell\client\Sitecore\Speak\Ribbon\Controls\LargeButton. If you have look in the LargeButton.cshtml then you can see it uses the LargeButton ...


1

As I was looking a way to achieve this, I found this post and as a basis to get started. Using the rebind method, a simple array is sufficient to be used for obj. var obj = [ { "itemId":"{E932156B-3269-44AB-ADB2-60E50C56730A}" , "itemName":"My item 1" }, { "itemId":"{DB534C88-F1D2-4BC5-B5A6-AF341E331432}" , "itemName":"My item 2" } ]; this.viewModel.app....


Only top voted, non community-wiki answers of a minimum length are eligible