Richard Seal
Moderator
  • Member for 5 years, 4 months
  • Last seen this week
Dedicated CM server for scheduled publish
3 votes

If you have setup 2 CM servers, both will be able to publish. So you need to make sure that they only publish their own jobs. As SitecoreClimber mentioned, you can use the Publishing....

View answer
Add custom redirect on SPEAK logout
Accepted answer
4 votes

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 ...

View answer
What is the purpose of the Analytics DB in Sitecore 8.x?
Accepted answer
9 votes

The Analytics DB is used as a reporting database for xDB. MongoDB is the collection database and periodically this is aggregated and stored in the Analytics db (also called the reporting db). If you ...

View answer
Is it possible to create a bucket that doesn't use sub-folder buckets?
10 votes

This answer does not exactly match your question, but I believe it matches your requirements based on the comments you have made. If you want the Item Bucket search features on the parent item but do ...

View answer
Is there a way to supress rendering width and height attribs using Fortis Image.Render?
6 votes

You can't do that out of the box with Fortis because under the hood it is just using the standard Sitecore Field Renderer. This is what is adding the width and height attributes. There is a nice ...

View answer
Ramifications of removing encodeNameReplacement for dot (.)
Accepted answer
4 votes

From what I can find - the encodeNameReplacements are only used in MainUtil.DecodeName, MainUtil.EncodeName and MainUtil.EncodePath - These are used in both resolving url's and building them. So if ...

View answer
How to check access permissions on items for a user via the Security API?
13 votes

The code you have posted will always return true by the nature of how Sitecore security works. If SelectItems() returns an item, that means the Sitecore.Context.User can read it. If the current user ...

View answer
Error when using custom routes with https: "Attempt to retrieve context object of type 'Sitecore.Mvc.Presentation.RenderingContext' from empty stack."
3 votes

The code looks like it should work. I would make the following changes to just make things a bit more robust: Add a [HttpGet] attribute to the Login action result. It could be that over https the ...

View answer
Content editors are not able to edit versions of different language Sitecore 7.1
9 votes

Check that the users' Roles have access to the Languages they are attempting to edit. You can do this by opening the Access Viewer, selecting the role, and navigating to System/Languages. Don't just ...

View answer
What fieldtype should I use to select one item from a bucket
Accepted answer
9 votes

I've used a multilist with search and just used a regex in the validate field to limit to choices to the field requirements know each case. Here is an example regex that limits zero to 5 items ^({[^}]...

View answer
Dependency issue in 8.1u3 NuGet package
Accepted answer
5 votes

Change your build target from 4.5 to 4.5.2 in your project properties. The MS dependencies will not be compatible with 4.5 since that is now unsupported. So it can't find a dependency that matches ...

View answer
Passing a parameter to controller rendering through URL
7 votes

I've done this before using a wildcard item for the parameter and a custom resolver processor that runs just after the ItemResolver - The ItemResolver should resolve to /sitecore/content/mysite/...

View answer
Sitecore Media request Protection hashing with srcset attribute
Accepted answer
7 votes

It looks like your problem is the 1x being before the hash parameter - that part doesn't need to be included in the hash. Try changing to this: <img class="callout-grid__image" srcset="@...

View answer
Using Unicorn to Generate Glass Mapper Models
2 votes

You will have to use Rainbow (the serialization part of Unicorn) to read the YAML files and the process those with a T4 template. I have a tool that will do the reading for you and make the objects ...

View answer
Sitecore MVC - Controller Rendering - Experience Editing
Accepted answer
8 votes

Yes - you are using the Raw Value when you do @Html.Raw(Model.SampleItem.Text.Raw) - this bypasses the field renderer and so will not be editable in the Experience Editor. Instead of .Raw use ....

View answer
Datasource Subitems Items not being published in Sitecore 7.2
0 votes

It sounds to me like the PublishEmptyItems setting that was added in v7.2. By default that is set to false. What this means is if you have an item in your content tree that does not have an active ...

View answer
Is it possible to use conditional renderings with Sitecore MVC
Accepted answer
11 votes

Conditional renderings work fine with MVC. For version 8, you must have Analytics.Enabled set to true so you can get to the personalization section of the presentation. "Global" conditional ...

View answer
Sitecore MVC - Images Inside foreach Loop & RenderingModel for Strongly Typed Views
Accepted answer
7 votes

As has been mentioned. You should do this in your Constructor action and view model. This is an example of how you could do this without and ORM. But really if you are not using an ORM you are making ...

View answer
Fields Not Being Indexed in Lucene
Accepted answer
14 votes

The fields are being indexed, but they are not all marked as storageType="YES" in the default Lucene configuration. This means that the fields will be tokenized in the index, but not stored, or ...

View answer
How to remove a language version of a data template?
6 votes

Another way to do this is using Sitecore Powershell Extenstions. There is a cmdlet called Remove-ItemLanguage, this removes the specified language version from the item. Example that removes the ...

View answer
Error when loading config: Reader in incorrect state
4 votes

Found the issue - all files had the <sitecore> node in. But it seems like the comment that came before the <sitecore> node in the include file was causing the error in the logs. When I ...

View answer
What are the ways to find the Sitecore version on Sitecore installations?
4 votes

An alternative way to see the version and License Id on Sitecore 8+. Go to the login screen /sitecore/login and view the source. Search for an element Id called licenseOptions - you should see this: &...

View answer
Personalizing components with Analytics disabled in Sitecore 7.2
Accepted answer
8 votes

Yes need to have Analytics enabled for the personalization rules to be enabled in the system, but you can effectively disable it by turning off the database writes. You need to set Analytics.Enabled ...

View answer
Sitecore.ContentSearch.SolrProvider.SwitchOnRebuildSolrSearchIndex. No matching constructor was found
9 votes

I had exactly the same issue as you and for me it was a really small change to the patching that fixed it: Instead of: <index id="sitecore_core_index" type="Sitecore.ContentSearch.SolrProvider....

View answer
SimpleInjector as default DI in Sitecore 8.2
Accepted answer
20 votes

The problem with the simple injector container is that they do not provide a conforming container option. They don't like it. So to replace it with Simple Injector requires a bit more effort. In this ...

View answer
How do I set password complexity?
Accepted answer
10 votes

You can set this in the web.config. In your membership section. You can set a password strength regular expression. <add name="sql" type="System.Web.Security.SqlMembershipProvider" ...

View answer
MediaRequestProtection: An invalid/missing hash value was encountered
Accepted answer
10 votes

It usually means that a Url for a media asset is missing the Hash query string parameter when being called. This was introduced in v7.5. It attempts to fix an image resize vunerability where you ...

View answer
What is the best practice for managing Web.config changes in a solution?
Accepted answer
13 votes

Pre Sitecore 8.1 (which splits out the Sitecore node into /App_Config/Sitecore.config) - I generally create my own Sitecore.config and patch that into the web.config in the same way as the connection ...

View answer
Roles are missing from Role Manager. How would I restore the roles for the newer version?
Accepted answer
3 votes

From the vanilla instance it should be easy to package up the Roles you are missing and then just install that package on your client instance. I have had to do that before. Packaging roles is nice ...

View answer
Enable Content Editor button depending on template type
10 votes

Here is an alternative answer if you want to or are using Sitecore PowerShell Extensions for your context menu. You can create a Context Menu script item in your SPE module and then using the Show ...

View answer
1
8 9 10
11
12