Richard Seal
Moderator
  • Member for 5 years, 4 months
  • Last seen this week
Item validator access already stored data instead of newly inputed data
6 votes

So one thing to note - CriticalError - the user is warned before saving, but the data is still saved. FatalError will stop the item from being saved if validation fails. But... What you are trying ...

View answer
ExecuteRequest is Obsolete, How should we derive from the ExecuteRequest pipeline processor?
Accepted answer
4 votes

After taking this to Slack - here was the problem. In the base class, the default constructor is using poor mans DI to resolve the references: [Obsolete("Use another constructor overload with ...

View answer
Field level Validation Rule => "OnSave"?
3 votes

As well as using a rules engine based validator, there are also validation fields on the Field template that you can use: The Validation field takes a regex and the ValidationText field can be used ...

View answer
SignUp and SignIn user using facebook
Accepted answer
4 votes

The Sitecore.Security.Authentication.AuthenticationManager.Login function has an overload that just accepts the username as a string. You don't need to add in the password to authenticate the user. So ...

View answer
why is my Richtext field not rendering as rich text?
14 votes

Its because you are not using the Sitecore field render to render the field content. This code: var mainContent = Sitecore.Context.Item.Fields["Main Content"].Value; just outputs the raw ...

View answer
Where is the Content Manager in 8.2
Accepted answer
4 votes

The ContentEditorForm is still located in Sitecore.Shell.Applications.ContentManager in the latest version of Sitecore. Make sure you have referenced the Sitecore.Client assembly correctly:

View answer
EntityService-based controllers stop working when adding a controller with a named route
4 votes

This will be the way the routes get registered when applied by attributes. The correct way to register your own routes with Sitecore is to write a custom initialize pipeline processor and patch it in ...

View answer
Sitecore 8.1 initial to 8.2 Update 3 Glass Mapper 4.3 looking for IsPageEditor
Accepted answer
3 votes

Jim - so, I think the problem is the same - you are running with a Glass binary that has been compiled against a version of Sitecore where IsPageEditor was still available. When you install the Glass ...

View answer
Boost Search Placement for One Page and One Keyword
1 votes

If you want it guaranteed to be the first result any time the term download is used, you might be better off manually adding it to the top of the list when you detect that word. Its a bit of a hack, ...

View answer
how do I get an image from the Media library using RendingModel
Accepted answer
4 votes

As Mark mentioned, this post provides you with one answer, using extension methods. I believe what you want is simpler tho. The @Html.Sitecore().Field(....) method will return you a fully rendered &...

View answer
TDS TT File Reference Custom Dll
1 votes

The Assembly Directive requires an absolute path. But you can use variables to make the path "relative" from a known path - for example in the Fortis T4 template we add this: <#@ Assembly Name="$(...

View answer
Prevent Content Editor from automatically switching ribbons
4 votes

The contextual ribbon is controlled by the Ribbon field on the template of the item you are on. So for images, it would be on either the /sitecore/templates/System/Media/Unversioned/Image or /sitecore/...

View answer
How do I replace css background url with @html.Sitecore().field("Header Image")
Accepted answer
5 votes

The code @Html.Sitecore().Field("Header Image") will render a full image tag like: <img src="~/media/imageid.ashx" alt="" /> For the background image, you need to get the Url of the image. ...

View answer
Move items between folders programmatically
Accepted answer
13 votes

You would want to setup a Sitecore Scheduled task to do this. You have 2 options: 1. C# Scheduled Task The code to move an item is pretty simple: var currentDb = Sitecore.Data.Database.GetDatabase("...

View answer
How do a open a Speak Dialog (or Dashboard Application) from within code?
Accepted answer
2 votes

You can open a SPEAK dialog using the SheerResponse.ShowModalDialog command. Example: SheerResponse.ShowModalDialog(new ModalDialogOptions(url) { Width = "100", Height = "200", Response = true,...

View answer
Managing field data sources per environment
4 votes

There are multiple ways that you can do this. But you are on the right track with putting the value in app settings and changing the values on deployment (not build). The implementation will depend ...

View answer
Best way to Use Sitecore Data for other Application?
8 votes

This is a tricky question to answer as what is "best" can often depend on your solution. So let's look at the options: Item Web API - as @sitecorebasics said, the Item Web API is not supported in ...

View answer
Is there a way to deploy assembly bindings out using the gulpfile
Accepted answer
4 votes

If you take a look at the habitat demo - you will see that they use web.config.transform files. This is an example file from the Project/Common website project: <?xml version="1.0" encoding="utf-...

View answer
What is the event called when application starts?
Accepted answer
17 votes

Ok - for attaching code to when the application starts, you have a couple of options. Initialize Pipeline The standard way to do this is via the Initialize pipeline. Create yourself a new processor ...

View answer
Huge Search.Log due to List Manager (while using EXM)?
2 votes

Sitecore uses log4net as its logging component. You can change the logging levels for different parts of the Sitecore install. This is the default log settings found in the Sitecore.ContentSearch....

View answer
IOC (Simple Injector) with EntityService
3 votes

While @dnstommy is correct, what you are doing is not best practice and you really should refactor if you can to use a pipeline approach. The answer to your question is in this line: container....

View answer
How do I remove /sitecore from API calls?
2 votes

As I see it, your options are: Change the routing setup to remove the /sitecore part from the expected route information. Not knowing your code, this could have side effects and would need a thorough ...

View answer
Client caching and gzip settings not working
2 votes

To optimize images in the media library I recommend using Dianoga from the mind of @kamsar - it optimizes the image files after they are added into the media cache as an async process. So it doesn't ...

View answer
Good or bad:: Keeping large volume of documents in sitecore 8.1 Media Library
7 votes

While Sitecore would be able to store that many documents, There are some things you may want to consider: Maintenance With the Search API in the content editor maintenance will be easier than it used ...

View answer
How to setup sitecore site from existing database and website folder?
Accepted answer
9 votes

For an existing site, you would want to create the site manually in IIS. Create a new website in IIS, point the folder to your website folder. Make sure the binding is setup to something like ...

View answer
Any guide to implement Azure Search with Sitecore 8.1x?
Accepted answer
4 votes

Out of the box Azure Search is only available on Sitecore 8.2 update 1 and above. If you wanted to use it on earlier versions you would have to write your own provider for it.

View answer
Language settings in master vs core
Accepted answer
2 votes

IIRC the languages in the Core database relate the the language versions that the Sitecore admin pages are displayed in. So this would change the text in the Sitecore interface. This is known as the ...

View answer
How can I make responsive images editable?
2 votes

The simplest way would be to render different markup for Normal vs Experience Editor modes. Something like: @if (Sitecore.Context.PageMode.IsExperienceEditor) { <img src="@(addImageUrlHere)" ...

View answer
Access to both Experience Profile and Presentation Details
Accepted answer
1 votes

There is another option - define your own user access role - sitecore/YourOwnUserRole - then give that user all the same access as a sitecore/Author and sitecore/Designer and then make sure they have ...

View answer
How to change the default header color in Sitecore's internal applications?
2 votes

The module that Marek mentioned is great. Another option that does also add text is the Sitecore Extensions Google Chrome extension. It is open source (https://github.com/alan-null/sc_ext) so you can ...

View answer
1
6 7
8
9 10
12