output stringlengths 34 25.7k | instruction stringlengths 81 31k | input stringclasses 1
value |
|---|---|---|
You are correct. The master database contains all versions of any given item per language.
In normal senario and before sitecore 8.1, The web database only contains a single version of each item, per language.
But, from sitecore 8.1 onwards, there is a scenario where multiple versions of a single item can exist.
i... | Can the web database contain multiple versions of a single item?
I know that master database contains all the versions of an item.
Does the web database also contain all the versions of an item?
Or web database can only contain a single version of an item?
| |
Have you checked out the custom search provider for Algolia here?
| How can I use a 3rd party search appliance to build my searches?
I'd like to use Algolia (a cloud-based search provider) for building my search indexes instead of using SOLR. Is that possible? How could I get started?
| |
I think the media framework integration guide will get you what you need.
https://sdn.sitecore.net/upload/sdn5/products/sitecore%20media%20framework/21/sitecore_media_framework_2_1_integration_guide-usletter.pdf
It covers media import, export & synchronization
| How can I write my own Media Framework Extension?
I've noticed that Ooyala and Brightcove both have their own media connectors. I'm looking at using a different media provider, and am trying to figure out what the amount of effort would be to write my own provider. Where are the extension points that I can use to crea... | |
As far as I know, I can say no there isn't at this point. Please correct me if I am wrong someone. However you can do the following to deploy sitecore items.
Source: https://github.com/kamsar/Unicorn
Automated Deployment
With Unicorn you've got two options for automated deployment of item changes, for example from a... | Packaging up items from Unicorn into a Sitecore package
I have used TDS for most of my packages for deployment or creating modules for co-workers and friends. TDS is great at creating update packages. Is there a process to take all Unicorn items and convert them into a Sitecore package?
| |
Turns out the guys over at SPE though through some of this too. Hopefully others find this answer helpful.
Here's a page describing how to manage item languages.
Example: The following will query all the items under home and add copy US english to CA english; skips if the language already exists.
$root = "master:\co... | Sitecore items missing language from some of the content
What is the best way to detect which items are missing a particular language version as well as add them? Is there a method to performing this in bulk?
| |
You can install Sitecore Powershell Extensions.
This module allows you to create dialogs using Powershell Scripts and create buttons which you can connect to various places in Content Editor (context menu, ribbon, etc.)
This screenshot if from one of the examples. The code underneath the dialog is used to create it.
... | How to show a simple dialog like confirm/alert to the content editor without requiring a deployment?
Sitecore has provided many great ways to plug into their architecture via pipelines and configuration patches. I'm confused however how to present a simple dialog to the content editor whenever they click a button in t... | |
You can do this easily with Sitecore Powershell Extensions, just use the following script:
Get-ChildItem . -Recurse |? { $_.__Workflow -eq "" }
| Items missing workflow audit report
I'm working on a rescue project and have started to noticed that there are quite a number of items not associated with a workflow. A few of the content editors have reported that sometimes items can be published straight to production but not all.
How can I audit the solution to s... | |
Turns out that you have a few options.
The first option is to open up the *Portraits.config** and modify the list of pipe-delimited icons.
The second option I discovered is you can simply paste in a new url in the user manager. As seen below, I pasted in a public image url and it showed up upon refresh of the screen... | How do you customize the the profile photo in 8.2 or newer?
From the desktop I've only been able to change the background to one of the predefined images; same goes for the profile. Not finding any articles that relate specifically to those images.
| |
Turns out that the contributors to the Sitecore PowerShell Extensions module thought of everything. Bundled with the module is a script under the script module Random desktop background. The script is apparently an adaptation from a POC by John West.
There is an integration point library called LoggedIn which in essen... | How do you create a random desktop background image like that in Windows?
I've found this article where the author describes how to upload custom images. So what I would like to do now is have it rotate randomly every few minutes.
Seems like something that would work great with the scheduled task system.
| |
Sitecore.Datalift follows the normal pattern of trying to grab the Datasourced item, falling back to Context.Item if no datasource has been set.
While I can't tell from your code exactly what is failing, the normal caveats would be:
You've not defined your datasource. If so; your code above expects Context.Item to h... | Sitecore Datalift returning null for actionItem
I have the following dummy controller trying to use https://github.com/cassidydotdk/Sitecore.Datalift
public class MyController : DataLiftController
{
public ActionResult Index()
{
var actionItem = GetActionItem("User Defined/MyProject/Pages/MyItem");
... | |
Have a look here in the SPE book regarding the Unlock-Item command.
Example: The following will unlock the direct descendants of the home item.
Get-ChildItem -Path master:\content\home | Unlock-Item -PassThru
You should update the path to be specific to the tenant you wish to unlock. Add the -Recurse switch to the... | Getting locked items SPE
I have a multisite Sitecore instance and I would like to get all locked items from all different sites and users and unlock them, is it possible to do this job using Sitecore Powershell Extensions?
| |
It's my understanding that if no strategies are defined, than you would be unable to rebuild the index unless you do it directly on that server via code.
Specifying a strategy calls the AddStrategy method on the index:
<strategies hint="list:AddStrategy">
<!-- NOTE: order of these is controls the execution order --... | How does Sitecore update a search index if there are no index update strategies configured?
The Sitecore docs list the available index update strategies, but there is no mention of what happens if no strategies are configured.
For example, would the index on the CD server for the following configuration ever be updat... | |
This will require customization. Luckily for you, Kam has an example available at http://kamsar.net/index.php/2015/05/A-Multiple-Root-Treelist-Field/
This should do the trick.
| How do I define multiple sources in the Source of a Treelist field?
I am trying to add multiple root folders to the source field of a treelist template field. For example:
Datasource=/sitecore/media library/ | /sitecore/content/
I have done this with sitecore query, but treelist does not use sitecore query. This is... | |
An important note to start: the "Links Database" is a table named "Links" that lives inside a Sitecore database. It is not a separate database.
Sitecore only updates the Link Database on the database referenced by the CM server. The Sitecore Scaling Guide (section 3.6.1) states it as follows:
In a multi-server Sit... | How does Sitecore update the Link Database?
I installed the Sitecore URL Rewrite Module for a client. The module worked properly in non-production environments. However, it did not work on production CD servers. The module uses the links database to precache the rewrite rules that live as Sitecore items*.
* The modul... | |
I'd like to add that Mobile SDK for Xamarin with Sitecore Services Client support have been released.
Available as usual on dev.sitecore.net, Nuget, Xamarin Store, Github.
| Does Sitecore support xamarin mobile app development
Does sitecore has mobile api for Xamarin forms mobile app development ?
If yes, please provide links to the resources.
| |
In previous versions, Sitecore would not prevent editors from creating items with duplicate names under the same parent.
The item name is used in the path to resolve the Sitecore item (e.g. based on request URL). If multiple items with the same name exist, Sitecore will resolve one at random.
By setting the AllowDupl... | what is the usage of AllowDuplicateItemNamesOnSameLevel setting in sitecore 8.1. update 2
Sitecore 8.1 Update-2 has introduced a new setting called AllowDuplicateItemNamesOnSameLevel
What is the usaged of this setting ?
| |
I wrote a blog post on this a while ago: http://www.flux-digital.com/blog/refreshing-experience-page-editor-after-using-edit-frames-or-buttons/
One word of caution though, we did see some odd issues caused by this firing and causing a save on components where it wasn't needed. So I'd suggest perhaps checking your temp... | Experience Editor changes force refresh
When in Experience Editor making changes to some fields, such as a multilist that could control a rendering of items to show, do not reflect on the page until it is saved. This can be confusing and cumbersome for content editors.
Is there a way to force a save and refresh when ... | |
I'm not aware of an official listing, but www.sitecoreug.org looks pretty complete. You can also search on www.Meetup.com, where most user groups are listed.
| Sitecore User Group Directory
Around the world, there are lot of Sitecore User Groups created/maintained/organized by sitecore community.
What is the website which contains all the Sitecore User Groups listed in same place ?
| |
The path to the root item of the site in terms of Sitecore content tree. For example, it is set to /sitecore/content for the “website” site.
See Documentation
| Usage of rootPath property of Site configuration node
In the sitecore configuration, we use site configuration nodes to define websites.
In that configuration node, there is rootPath property with values to sitecore content item.
What is the usage of this rootPath setting?
| |
There is a Modules Compatibility Table on Sitecore's knowledge base site: https://kb.sitecore.net/articles/541788.
| What is the place to view Sitecore module compatibilities
Sitecore comes with lot of official modules. These modules has there own versions while core Sitecore CMS has its own version.
What is the best place to view all these modules and there compatibilities with Sitecore CMS versions ?
| |
In order to gain access to the Sitecore support site you need to be a Sitecore certified developer. There are both instructor lead classroom and eLearning options available.
You can learn more from Sitecore Training about the available classes and options.
At the end of the training class there will be a certificatio... | How to get Sitecore Official Support help
Sitecore has there own Official Support process where we can create tickets/issues and get help from them.
i.e. http://support.sitecore.net
What is the criteria to be eligible to create tickets/issues to Official Sitecore Support ?
| |
Sitecore 8.2 has a new admin page at /sitecore/admin/SupportPackage.aspx that will gather this information into a zip package for you. For earlier versions, you can use the Support Package Generator, which is a windows GUI application that helps you generate the package.
| How to generate information needed for Sitecore support when creating a ticket
When contacting Sitecore official support, they are requesting some basic information about our solution.
What is the best and easy way to create these information ?
What tools/modules can we used to generate these info ?
| |
There is no user interface that would show you the package installation history out of the box, but seeing it is pretty easy. Sitecore stores information about installed packages in the Core databases under the following path:
/sitecore/system/packages/installation history
If you want to know more details about this,... | Is there anyway to find packages installed into Sitecore instance
In Sitecore, there is a facility to install Sitecore packages.
Is there a way to view what packages are installed into our Sitecore instance and when they got installed ?
Are there any modules to support this functionality ?
| |
Running your website in "Live Mode", means you serve content from your master database.
This is a broadly applied practice in a distributed environment, to have your CM instance function as a QA website. In this way, your content editors can review their changes on the website, before publishing to the live site on t... | What is Sitecore Live Mode?
Sitecore CMS normally uses web database content to display in fornt-end website.
What is the way to run Sitecore front-end website pointing to master database.
Does that mean running Sitecore Live Mode ?
| |
The settings are: database=master, filterItems=true and enableWorflow=true.
There is an example patch file included in App_Config/Include named LiveMode.config.example.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<sites>
<site name="website">
<patch:attribute name="... | How to run Sitecore in Live Mode?
I need to run my front-end website by pointing to master database, temporarily.
What settings should I change to achieve this?
| |
from sitecore 6.5
setting name="WebEdit.PlaceholdersEditableWithoutSettings"
value="false"
if needs to use dynamic placeholders or need to edit a placeholder without setting placeholder settings prior, then set this setting to "true".
| How to make Experience Editor placeholders editable without placeholder settings?
Normally, we need to define placeholders with allowed renderings in placeholder settings, to allow Experience Editor to support.
What is the way to configure placeholders editable in the Experience Editor if placeholder settings are n... | |
If you have access to the file system for the instance, you can look at /sitecore/shell/sitecore.version.xml. Otherwise, you can log into desktop mode and from the start menu, go to All Applications > System > License Details.
Also sitecore output the sitecore version to new error log files.
| What are the ways to find the Sitecore version on Sitecore installations?
For the existing Sitecore instances, what are the different ways to find the version of the Sitecore CMS ?
| |
xDB online visits, in most cases, map one-to-one to ASP.NET sessions. Generally, ASP.NET sessions are tracked in the browser using the cookie ASP.NET_SessionId, and the actual visit state (including the InteractionId) is kept in the session store you've configured in Sitecore.
The reason I said "in most cases" in the ... | How does xDB track individual visits?
With Sitecore 8.x, there is no longer a cookie associated with the individual visit (though of course the visitor cookie, SC_GLOBAL_ANALYTICS_COOKIE is still there). How does xDB track individual visits? Is there a browser-stored entity that corresponds to the Interaction ID, or i... | |
The Sitecore 6.6 scaling guide has this to say about the IDTable:
You can store persistent mappings of arbitrary keys to Sitecore IDs in the Sitecore IDTable.
By default, this is only used by the Sitecore CMS WebDAV functionality to keep locks on media items in the CM environment and does not need to be synchr... | What is Sitecore IDTable usage?
There is a table called IDTable that comes by default with Sitecore installations.
What is the usage of this table ?
| |
For Sitecore 8.1 and later:
Per Sitecore documentation, you can run in "CMS-only" mode:
To run CMS-only mode, you must set the Xdb.Enabled configuration setting to false in the Sitecore.Xdb.config configuration file.
https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/experience_managem... | How can I disable xDB?
If I don't have a working connection to MongoDB and I don't want to use xDB functionality. Currently, my logs are being filled with errors.
What is the configuration needed to disable xDB?
| |
To my knowledge, Sitecore/Komfo doesn't offer developer accounts yet. If you're aligned with a Sitecore Partner, the partner can get an account from their partner rep. That's how we got ours.
| Developer access to Komfo
Beginning with Sitecore 8.0, the Social Connected module became part of the main platform, and it now requires access to the third-party Komfo service. When a user clicks on the Social button on the Sitecore Dashboard, she is prompted to log on to Komfo, either with a Komfo account or with Go... | |
Branching off of @SzymonKuzniak's answer, the simple answer is "no" but the complex answer is "yes, with some trickery, by tapping into the getLookupSourceItems pipeline."
In order to minimize development cost and maximize your extensibility, maintainability, and reusability, my recommendation would be to write a pro... | Override the source of a template field
If I have a template that is inheriting a field from a base template, Is there any way to override the source of that field?
| |
The page editor (a.k.a Experience Editor) is used to edit content, so it uses the master database.
| Does Page Editor run on master or web database?
If I open a Sitecore content item in Sitecore Page Editor, does it run on the master database or on web database?
| |
Your root item (probably a real Sitecore item) has to be set as a bucket. For your child items (the virtual ones from your provider), you need to set the Is Bucketable value to true on the 'Standard Values' of the template (so not on the template itself).
Definitively read this https://stackoverflow.com/questions/3669... | Custom Data Provider with bucketed items
I am creating a custom data provider to integration news articles from an external API into a Sitecore solution.
The external data source has a large amount of news articles though, so I would like to bucket the items in the Sitecore content tree.
How would I achieve this?
| |
Sitecore Commerce Connect employs a similar approach. From the Commerce Connect Integration Guide:
3.1.5 ID Mapping By design, the remote product repository is always regarded as the main repository, which by default owns the products.
That makes the ID of the products and artifacts in the external system
the primary ... | Consistent GUIDs for custom data provider
I am creating a custom data provider to integration news articles from an external API into a Sitecore solution.
The external data source use simple integers as ID for the news articles though.
I will be running the data provider in "live mode" (directly in both master and we... | |
In addition to the description provided in Szymon's answer, you can use physicalFolder and virtualFolder to define part of your website url.
i.e. hostname/virtualFolder/item_path
We have used this senario in complex multi-site implementation, instead of language property. We used virtualFolder & physicalFolder t... | What is the usage of "physicalFolder" and "virtualFolder" attributes in a Sitecore site defintion
<site name="xxx" inherits="website" hostName="xxx.local"
virtualFolder="/"
physicalFolder="/"
targetHostName="xxx.local"
scheme="https"
rootPath="/sitecore/content/xxx"
startItem="/Home"
... | |
I've only ever seen one example of completely automating this process, based off the original Sitecore spreadsheet. It only works off the original; so you would need to expand it for Unicorn and other tools in use.
It relies on PowerShell. (not Sitecore PowerShell Extensions).
Essentially the script functions like th... | Automating server role configuration
When configuring server instances in a distributed environment, a range of config files must be enabled or disabled based on the instance role (e.g. CD, CM, Processing, Aggregation), referencing the "Config Enable Disable Excel spreadsheet":
https://doc.sitecore.net//~/media/F50C50... | |
It depends somewhat on the modules you're running (and version of Sitecore) and the traffic of your site.
For instance - there is specific guidance around when a dedicated server is needed for EXM (A dedicated server is recommended at 100k+ emails per week): https://doc.sitecore.net/email_experience_manager/configurin... | Is a multi-role Sitecore server ok in production?
The architecture guidance from Sitecore suggests that multi-role servers - e.g. combining Content Management / Processing / Reporting - should only be done in development and not in production.
However, I've now seen many installations that are only splitting Content ... | |
Here's an overview of each of the publishing methods:
Republish
This publish will simply fully publish out each item again, regardless of whether it has been published before or not. Therefore this is the slowest publish as Sitecore will still transfer over changes that may already be on the target database.
Smart
... | What is the difference between republish, smart publish and incremental publishes?
Does anyone know what the difference between the 3 main types of publishing in Sitecore are?
I have the option to do a republish, incremental publish and a smart publish
My understanding is that a republish will publish everything but... | |
I agree that this is many questions in one. As a start though this is from the Sitecore 6.3 PDF:
Event Queues
To ensure data and cache coherence and support communication between instances in an environment and between CM and CD environments, Sitecore CMS 6.3 maintains event queues as tables in Sitecore databases. Ea... | How does the Sitecore event queue work?
There's an EventQueue table in every Sitecore database. It contains both the local and remote events of Sitecore instances.
I would like to know how the event queue works, exactly.
Why are some events stored in the Core, some in the Master, and some in the Web database?
Why i... | |
You are able to change the format of the default bucketing folder structure uising the following setting:
<setting name="BucketConfiguration.BucketFolderPath" value="yyyy\/MM\/dd\/HH\/mm"/>
Note that this is still based on the item creation date though.
It is also possible to utilise the Sitecore Rules Engine to de... | Can bucketing strategy be controlled per template?
Bucketing is a nice feature for organizing a large amount of items in the Sitecore content tree, however the default bucketing strategy based on item creation date is mostly useful for content where the creation date is actually relevant (e.g. news articles).
Can mu... | |
You just need to go to each of your templates' field items and add a Long description and Short description as per the image below. Save this and go to a component and your help text will show to content editors:
| How to add helpful text to a Sitecore field
In other peoples Sitecore installations, I have seen fields with a bit of descriptive text next to the field name to help the user input the correct information.
I would like to use this in my current installation, but I don't know how to add this helpful text to a field na... | |
Prefetch cache
This is item data pulled out from the database when the site starts up - from the Sitecore docs:
"Each database prefetch cache entry represents an item in a database. Database prefetch cache
entries include all field values for all versions of that item, and information about the parent and
children... | What is the difference between the item, prefetch and html caches?
It is my understanding that there are various different caches in Sitecore.
What are they for?
I know there is an item cache, a html cache and a prefetch cache, but I don't understand how they differ or how I can control these caches
| |
You could mark those items as hidden - regular users don't see hidden items by default (and you can disable option to show them as well)
You can set it on the item or on the template's standard values. Just search for a Hidden field in the Appearance section.
| Hiding items in the Content Editor for certain users / roles
The content editors want to divide up their roles so that some editors of the site only have access to edit and change a certain area of the site (e.g. /news and all its descendants). These editors would belong to a particular role, e.g. News Editor. They wo... | |
You can try clearing the Links table before starting a link db rebuild.
Tasks like Erasing (or comparing) existing data might also included in the rebuilding process, which might cause this issue.
| How to speed up rebuilding the link database?
I'm rebuilding a link database with more than 10 millions of rows. It is taking 16 hours per database, but the web server and SQL server are almost idle, even when new rows are generated slowly in the links table.
Is there any way we can make use of all the resources avail... | |
You've got a few options:
The Simple Option:
Add a width (see here: Sitecore Image Parameters) - the image sizes will be processed. The disadvantage of this approach is that you get a processing hit the first time the image is resized (it then caches the result I believe).
A more complex option:
You can build somet... | Optimizing Sitecore Media Items
We're currently trying to optimize our site so the end users get fast response times. One of the areas we are looking at moment is the media served from the Sitecore Media Library.
What settings are available and what techniques can be used to ensure that the media items are both optim... | |
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 to true and Analytics.DisableDatabase to true. Example patch file:
<configuration xmlns:patch="http://www.sitecore.net/... | Personalizing components with Analytics disabled in Sitecore 7.2
I've just come across an issue with missing personalization options on a Sitecore 7.2 website.
Analytics was recently disabled.
I found an article explaining that disabling Analytics hides all personalization rules sections.
Is there a way to personali... | |
The answer to this depends on the context of your project. Sitecore's recommendations are to make incremental upgrades for every version and updates as well since your current to the latest you are trying to get upgraded to. This does require a lot of work specially when it's a big jump from 6.5 to 8.2. As already answ... | What's the best migration strategy for 6.5 to 8.2?
In a few weeks, I'll start a migration project of a Sitecore 6.5 site to an 8.2 site.
At that time the Express Migration Tool will only support 7.2 to 8.2, so the rest will be a manual process.
I still have to go over the project and code with the original developers... | |
To make HTML cache work:
Make sure that the cacheHtml attribute of your /configuration/sitecore/sites/site is set to true.
If you dynamically bind a rendering to a placeholder using layout details, cache settings explicitly defined in layout details will override cache settings defined in the rendering definition ite... | Rendering Caches not working
I have a problem with my HTML cache always being empty when I look at the cache report screens in Sitecore I have done the following:
Enabled Cacheable and Vary By Data on each rendering in Sitecore (view renderings and controller renderings)
Ensured that under each site (this is a multi... | |
It could be that you just have a dodgy rendering that is running on every page and is then cached for that page; to see if this is the case you can profile Sitecore pages.
You can investigate this by clicking on the "Debug" option
and scrolling to the bottom of the page to see the speed of renderings:
From here ... | Sitecore Page - First request on every page slow
We have been noticing that the first request to any of the Sitecore pages seems to be loaded slow. Every subsequent request is ok.
Note that we can't use output cache as is a transaction based member portal.
What could be the cause and possible solution?
Is there an... | |
We had a similar problem in a production installation that had a significant number of calculated Lucene fields, plus a number of very active content authors with a lot of publishing and index updating activity.
Essentially Sitecore was pushing events at Lucene faster than it could process them.
Here are some suggestio... | Requests stop being served due to Lucene Deadlock
I'm currently running into an issue in production Content Delivery where every now and then (2 hours to 2 days), all requests will stop being served. Via memory dump we've been able to track down the cause as a thread deadlock - always a piece of code that is querying ... | |
The out of the box links don't specify language at all, so there is no way with an internal item reference to specify a specific language. The link is tied at the item level, not the version. Similarly, you can't directly link to a specific version of the content in the current language.
When invoked, the LinkManager ... | How to link to a different language version
I need to create a link to an item in a different version than the currently active.
Is this possible through the General Link field or the RTE Sitecore Link?
Example
I am currently viewing http://mysite/somepage. I would like to link to http://mysite/en-us/some(other)pag... | |
In multi-site solutions, when you edit an item in the Experience Editor, Sitecore will by default resolve the site context using the value of the setting Preview.DefaultSite. It's located in Sitecore.config, and my guess is that you currently have it set to mysite1:
<setting name="Preview.DefaultSite" value="mysite1">... | Editing Content in Experience Editor in Multi-site configuration
We have a multi-site setup and have the following sites defined in config:
<sites>
<site name="mysite1" patch:before="*[@name='website']" rootPath="/sitecore/content/mysite1" startItem="home" hostName="mysite1.com" ... />
<site name="mysite2" patch:... | |
This bug is referenced in the knowledge base as Reference number: 88491.
Specifically, it patches the majority of the <sitecore.experienceeditor.speak.requests> pipeline and takes care to ensure that requests to the SPEAK which are generally handled over AJAX calls are properly formatted.
It should be noted that thi... | Broken external links encoding
There's an issue in our EXM when referring to external links. When we insert these links in EXM message editor:
http://www.huffingtonpost.com/2014/05/23/rock-climbing-cat_n_5380069.html?utm_hp_ref=adventure&hq_e=el&hq_m=4435336&hq_l=15&hq_v=1adccf5361
The delivered ema... | |
Your Sitecore application should never use the same Data folder.
If they do, they will override their indexes every time while index is rebuilt.
I'm guessing that's exactly what's happening in your scenario - one application tries to update its index and another one tries to perform another operation on index files ... | Sitecore 7.1 IIS workers fighting with each other
Has anyone had an issue that you have multiple worker processes under application pool which are trying to write the data under the data/index folder and that are colliding with each other?
| |
You can also move the comment to in between the xml and configuration node, or anywhere else within the sitecore node, and it should be fine
This is how a lot of the default example Sitecore configuration files have their comments:
<?xml version="1.0"?>
<!--
Purpose: **** Comments here are fine ****
-->
<configur... | Error when loading config: Reader in incorrect state
I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:
"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader ... | |
You have to tell which areas of your site require the login.
Remove read access for extranet/anonymous user for the item which should be protected with login.
| Sitecore site configuration requireLogin not working
If I wanted to force users to go through a login for the entire site. I would previously add requireLogin and loginPage attributes to my site configuration.
In 8.2 I am unable to do this. However in 8.1 this works. Any ideas how this has changed? Or am I doing som... | |
You are correct—the "Ignore Additional Registrations" checkbox will make sure that nothing happens in case an existing outcome is attempted to be registered again.
Here's an excerpt from the decompiled class Sitecore.Analytics.Outcome.OutcomeManager:
public virtual void Save(IOutcome outcome)
{
if (!this.CanSaveOut... | How can I prevent an outcome from being registered multiple times?
What is the accepted method of preventing a contact from registering an outcome multiple times? For example, if they become a "Marketing Lead", how do I prevent that Outcome from firing again for that contact?
Do you need to programmatically check to ... | |
Probably the most terse:
string itemPath = item.Paths.FullPath;
SiteInfo site = SiteContextFactory.Sites
.Where (s => s.RootPath !="" & itemPath.StartsWith(s.RootPath, StringComparison.OrdinalIgnoreCase))
.OrderByDescending(s => s.RootPath.Length)
.FirstOrDefault();
itemPath is factored out of th... | How to get the correct SiteContext for an Item when you only have the Item
You only have an instance of Item.
How do you get it's "official" site, assuming there are multiple Sites defined in configuration?
| |
The correct way to resolve this would be to fix the cause of the issue and reduce the item length to less than 100 on the problematic item.
As you have also found, you can increase the MaxItemNameLength to a higher number to get around the issue.
Be aware though, the Name field in the Items table in the database has ... | An item name lenght should be less or equal to 100 while installing a content package
I've got a vanilla instance of Sitecore 8.2 installed on my sandbox and I'm getting this error (taken from the logs):
Exception: Sitecore.Exceptions.InvalidItemNameException Message: An
item name lenght should be less or equal ... | |
Inner value: the "raw" value (as you can see in the editor)
Standard value: value inherited from Standard Values of the template
Fallback value: value inherited through field fallback
Inherit value: value inherited from original item (cloning)
Default value: (thanks Klaus) this will be the value in the "default value"... | Field StandardValue vs DefaultValue vs FallbackValue vs InheritValue vs InnerValue
The parameters of the GetValue methods of the Sitecore.Data.Fields.Field class enable developers to restrict the origin of the returned value to the Fields:
StandardValue
DefaultValue
FallbackValue
InheritValue
InnerValue
What are t... | |
That exception originates from Sitecore.Data.Items.ItemUtil.GetItemNameError(string name) method in Sitecore.Kernel:
if (itemNameValidation.Length > 0 && !Regex.IsMatch(name, itemNameValidation, RegexOptions.ECMAScript))
return string.Format(Translate.Text("An item name must satisfy the pattern: {0} (control... | An item name must satisfy the pattern: ^[\w\*\$][\w\s\-\$]*(\(\d{1,}\)){0,1}$ (controlled by the setting ItemNameValidation)
While installing a content package from my production environment (Sitecore 8.1) into my development environment (Sitecore 8.2), I'm seeing this error message in my Sitecore log:
ManagedPool... | |
Habitat is intended to inspire your solutions; you should never start with the Habitat solution and add to it when creating a new site. Habitat is not an accelerator, it is an example of the Helix principles outlined here: helix.sitecore.net.
When you create a new solution, you may want to refer to the Habitat solutio... | How do you create a site modeled after the Habitat solution when starting from scratch?
I recently discovered Habitat and I really like the modular design and how it provides an end-to-end sort of pattern and process for organizing your Sitecore site, but the Habitat solution includes so many projects that I'm not sur... | |
You don't actually need a package - Sitecore gives you this ability out of the box.
What I normally do is; I have a "global" area, and a "page local" area for datasource content.
The way you set it up, is to go to your "Datasource Location" field on your rendering definition, and pipe | the different data sources - o... | Item level datasourcing
In several of the accelerators available: Score, SXA, etc... when creating a new item for a rendering datasource, you have a folder available to put the new item right under the current item or in a tenant folder. Is there a package or github repo out there that helps get this set up in a custo... | |
Setting ContentSearch.VerboseLogging to true can help give you diagnostic info on search index activity. Or a set of memory dumps when the thread appears to hang.
You may benefit from using the verbose logging along with this patch to turn up the details . . .
<configuration xmlns:patch="http://www.sitecore.net/xm... | Sitecore index update jobs getting stuck
I'm having trouble configuring a Sitecore 7.2 production environment and noticed some weird things on the CM environment..
After a few updates to the sitecore_master_index the jobs to update the index get stuck in the job queue and never get progressed and subsequently a ton o... | |
It appears that the pipeline has changed between webforms and MVC. The Success pipeline for MVC is <wffm.success> and can be found in Sitecore.MvcForms.config. Through this you have access to the FormModel
public class SuccessRedirect : FormProcessorBase<IFormModel>
{
public override void Process(FormProcessorArgs... | Change redirect url after success in WFFM
I have a WFFM form with a hidden field on it. The field contains a value that I would like to know on the success page - in order to use it in custom code in a rendering or even for personalization.
Is there a way to pass data from the form to the success page? Maybe by cha... | |
You should look at jQuery.noConflict(). Use this jQuery method in your JS to avoid conflicts with WFFM included jQuery libs
UPDATE:
In response to your updated question: no, there is no way to tell WFFM not to use jQuery, but because jQuery registers itself as an AMD module, you should be able to check to see if jQue... | Dealing with jQuery version collisions in WFFM
I've got a v7.2 site which is using Web Forms for Marketers v2.4 rev 151103 (WFFM) for some forms. I am seeing some errors in our javascript that I strongly suspect is related to the fact that WFFM is including an old version of jQuery.
What is the accepted way to handle... | |
In my opinion, these are the scopes you need to consider:
Global (across multiple sites)
Site (across an entire site)
Pillar/Section (used across an entire subtree of a site)
Page (Used only on this page)
Using only one location does not allow you to scope your security appropriately for your authors. If you have a... | Where should I store data source items?
I've seen two schools of thought on structuring the content tree as it relates to datasource items:
Store datasource items in a folder underneath the context item
Store data source items in a folder outside of the items representing pags ("global" folder, "metadata" folder, et... | |
There are three aspects in choosing a DI approach with Sitecore 8.2:
The decision of which dependency injection container to use.
The way you integrate the container with Sitecore and ASP.NET MVC.
The pattern in which service dependencies and implementations are registered.
Picking a DI container
Sitecore 8.2 uses... | Best approach for Dependency Injection in Sitecore 8.2
I see a fair few approaches in blog posts for using DI with 8.2, particularly around the registration. Is there an approach which would be recommended - particularly with a Helix compatible architecture?
http://kamsar.net/index.php/2016/08/Dependency-Injection-i... | |
You may have a look at the module LUCENE SPATIAL SEARCH SUPPORT on the Sitecore Marketplace. There is a link to the github repo which should give you an example of how that was done for Sitecore 7; hopefully not much has changed.
The creator built a library referencing these Lucene libraries:
Lucene.Net.Contrib.Spat... | Lucene spatial search with sitecore 8.2
I have a template with latitude and longitude field. I want to able to use lucene to search for records within given radius. I haven't found any code sample that works with sitecore 8.2. I've been told to use solr which is more feature rich but solr seems to complex for my need... | |
Right click on your Solution tab and check the Project Dependencies. Ensure that the Build Order reflects the proper dependency order:
Foundation
Feature
Project
... and that in general, templates are pushed before their content. If need be, use the Dependencies tab to adjust project dependencies to adjust the buil... | Habitat TDS Version - Sync Items to Sitecore
Keep in mind I'm a relative newbie to TDS, but looking through some of the documentation, I'm not sure I have found an answer that solidifies I'm doing something wrong.
I've got TDS installed and pulled down the TDS version of Habitat from GitHub, restored NuGet packages ... | |
This is a question with really a mryaid of possibilities for an answer.
It boils down to client requirements.
As a Best Practice, I advocate working with the business owner to iron out what the real requirements for workflow, security, and guard rails, are and then based on that information, create stories for tailo... | Prevent author from accidently breaking lots of links
Looking for best practices to prevent accidently removing lots of links.
I think there has been improvements in this area.
Scenario delete home node (accidently), popup launches for option for break links dialog.
Select remove broken links, thinking deleting a... | |
As the product owner, let me confirm.
In version 1.x --> 3.2 the Email reporting stack was built on a foundation that was inconsistent, inaccurate and not able to scale with the future of Sitecore. The reporting UI was poor and did not meet the expectations of nearly any of our customers.
This means we had to take hu... | Can ECM 2.2 be upgraded with analytics data to EXM 3.3 at all?
After reading this written by Sitecorehacker on the Sitecore Slack channel I fell off my seat:
"The "upgrade" from 3.2 to 3.3.. goes silent and walks away
I kid, but not really. The upgrade form 3.2 to 3.3 includes a breaking change that resets and disreg... | |
Trigger Auto-Archiving
You could write a publish:end:remote event that kicks off some logic to find all item versions "eligible for archiving," based on your criteria. You can then archive those versions that are n versions behind the latest.
Archiving
Now that your auto-archiving logic is created, you need to actu... | Limiting version numbers/copying old versions to archive for easy access
Sitecore recommends limiting number of items to up to 10 versions per item.
The version manager module can be used to limit the number of item versions.
This can either be run periodically, or when the number of item versions goes above a set ... | |
As Rodrigo Peplau suggests, sitecore/admin/showconfig.aspx is good for viewing the entire merged Sitecore configuration. So you could use that as the basis for your comparison between the environments.
The error message indicates that you have a problem with handling the packageinstall:items:ended event.
The event i... | Installing package acting different between 2 environments
I've got 2 developer sandbox instances of Sitecore 8.2, and in one instance the package works fine. However, in the other one, I'm getting this error while trying to install a package:
> ManagedPoolThread #17 16:20:58 INFO Installing item:
> items/master/si... | |
There's a web.config that has Sitecore references that should exist in the /Views that is probably not right.
This can be a common occurrence if using a new .NET MVC Project in Visual Studio and it accidently overwrites the Sitecore version.
You can grab the web.config from the Sitecore Vanilla Zip file to compare.
... | C# MVC razor view - HtmlHelper does not contain a definition for 'Sitecore'
Has anyone experienced an error described in the image below where the HtmlHelper in razor view is not recognizing Sitecore when I try to specify a placeholder?
Thanks for your help!
| |
There are actually a few options here:
Command Templates
Event handlers (item:added)
Pipeline processors (uiAddFromTemplate, addFromTemplate)
Command Templates
This is by far the simplest solution, requiring the least implementation effort but is also the least extensible and flexible.
What you would do is creat... | Execute custom logic whenever an item is added from a particular branch template
I am looking to run some custom logic (likely some rules) whenever an item is added from a particular branch template. How can I trigger this logic to run, in Sitecore.
| |
Sitecore's built in disablers, like the SecurityDisabler and the EventsDisabler classes, all inherit the Sitecore-provided Switcher class. This class is an IDisposable that can be used to create disablers for use in both pipeline processors and event handlers, without issue.
The Switcher class is easy enough to imple... | How can I write my own custom disabler?
Sitecore ships with a bunch of disablers, like the SecurityDisabler and the EventsDisabler, but what if I want to write my own?
I have a bunch of item:saved event handlers that run but when I add a new item from a particular snippet of code I want to disable one of my item:sav... | |
You have a few good options.
Module:
You were probably looking for this.
https://marketplace.sitecore.net/en/Modules/Media_Conversion_Tool.aspx
Custom Code
I would convert the code in this article to a script in Sitecore PowerShell Extensions since you can both run the existing report for finding them plus run the... | Convert disk based media to database
What's the best approach to migrate disk-based media into the database? We inherited a large enterprise site that's getting forklifted to Sitecore 8.2, and it currently uses file-based media. We want to move these into the database, as that's our standard, and makes the solution mo... | |
In my investigation and research into this issue I spoke with Andy Cohen the contributor for this module and he let me know that here is the proper format for Simple Redirect paths:
http://xyzcompany.com/about would just be about in the Path field just the name of the page.
However, if you have a page that is multip... | URL Rewrite Module Format for Simple Redirects
I just installed the URL Rewrite Module for Sitecore 8.1. However, I do not believe the simple redirects are working correctly. I get my page not found page versus getting the page I want redirected to. The documentation is not very clear either. I need to know what is th... | |
We have used a powershell script that does everything:
install SQL databases
install solr and configure
configure IIS
install Sitecore
build base VS projects
I would suggest investigating powershell. It will give you a lot of flexibility, for example different steps for different teams.
| Sitecore Instance Manager developer environment setup
I am looking for a way to keep all IIS settings, modules and Sitecore versions in sync across multiple developer environments in a team setting. Is there a way to use Sitecore Instance Manager (SIM), or other tools, to automate a development environment setup?
| |
You might want to consider psake. It is a task based build system written in Powershell.
A good starting point would be this piece of code:
# Let's define layers here
$layers = @( "Foundation", "Feature", "Project" )
# These folders we want to copy to our target
$foldersToCopy = @( "Views", "bin", "App_Config" )
#... | How to package a Helix solution using powershell
Following the Helix modular architecture, my solution is divided into a large amount of separate projects. To deploy the solution as a single package, we need to package all assets, configuration files, views aso. from all the projects into a single deployment package. ... | |
I believe the primary reason is each event has an associated target database.
Found a brief explanation here by Kiran Patils on how the event queuing works:
The CM instance triggers an event such as "publish:end:remote".
The triggered event is added to the EventQueue table in the database that is targeted by the eve... | Why is event data stored in every Sitecore database?
A table named EventQueue is present in every Sitecore database. It seems to contain local and remote events of Sitecore instances.
Why are some of these events stored in the Core, some in the Master, and some in the Web database? What is the reason behind this sepa... | |
Yes many types of events can be handled locally, not required to be shared to other servers.
See solution #2 at https://kb.sitecore.net/articles/930920 -- using the FileBasedPropertyStore has reduced volume of the EventQueue by 60% or more for some of the large implementations I've worked with. It shifts the specific... | What is the purpose of storing local events in the `EventQueue`?
In Sitecore databases, the EventQueue table contains both local and remote events of Sitecore instances.
Why is there a need to track local events? Can't they just be handled internally in the instance that fired them?
| |
After having processed an event from the queue each instance updates the associated last processing timestamp (LPT) which is stored in the Properties table and has the key in the following format 'EQStamp_{Sitecore-Instance-Name}'
Therefore, you can use the LPT to filter out events which have already been processed by... | When is it safe to remove an `EventQueue` record?
Sitecore stores its events in a database table called EventQueue. It is used for centralized event-based communication between Sitecore instances.
Sometimes this table grows quite large and it needs to be cleared of old events. Of course, there's a CleanupEventQueue t... | |
Issue was caused by an replacer being mode="on"
<replacer mode="on" id="publish" type="Sitecore.Text.Replacer, Sitecore.Kernel" singleInstance="true">
changing this setting to mode="off" fixes the issue:
<replacer mode="off" id="publish" type="Sitecore.Text.Replacer, Sitecore.Kernel" singleInstance="true">
| after upgrade from 6.5 to 7.2 Item.Editing.EndEdit() no longer fires event
We have a solution that was upgraded from 6.5 to 7.2. After this upgrade we are having issues where Item.Editing.EndEdit() no longer triggers item:saving/item:saved events. Therefore changes made to the item prior to the EndEdit() are not saved... | |
You can configure the LinkManager to use Display Name instead of item title when generating URLs.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<linkManager>
<providers>
<add name="sitecore">
<patch:attribute name="useDisplayName">true</patch:attribute>
... | How to manage same item with different URL per language version?
In Sitecore 7.5, it keeps the Item name same across all the language versions
So it is like
For the English language: http://example.com/products/accessories
For German language: http://example.com/de-de/products/accessories
Is possible out-of-the-b... | |
This is a "bug" in the WFFM module, the Sheer UI form does not set a different text for those headings. In a previous version of WFFM which did not include the "Select Existing Form" option I had added this option back in myself so it is possible to override the behaviour and set the "correct" headings.
Make a copy o... | Fixing wrong wizard titles
I use the WFFM module for a client. The problem is just that there are wrong texts in the wizard for inserting a form:
Select Insert an existing form, press next.
The subtitle under Select a Form is now Copy an _existing_ form. This is misleading as the user expects to insert a form, witho... | |
One approach that we have used is to index the content of all data sources in a single computed field. You can search that field when searching the index. This can probably be improved, but it's a start.
I believe this is also the approach the are using in the Habitat project.
Copied/inspired from: http://kamsar.net/... | Definition of content on a page
I have thought about how to best assemble a "page" document in Lucene/Solr to later use in Sitecore when searching for most relevant pages to show to a user.
A page consist of many elements which is typically indexed separately in Sitecore.
How would I best assemble the item that rep... | |
Publishing that many items will always be quite slow, there is a lot of reading, writing and indexing that is required however. I don't think there is going to be any code which will solve this.
I've not seem all the jobs disappearing (with the exception of, as you say Sitecore restarting - can you see this happening ... | Publishing items in bulk
I need to publish around 100K items in Sitecore 8.1 programmatically. They don't have a common parent, they are spread out in several folders but I have their IDs.
I tried using PublishOptions:
Sitecore.Publishing.PublishOptions publishOptions = new Sitecore.Publishing.PublishOptions(item.... | |
No, it's not possible without custom code.
And to be honest, I don't think this is really what should come out of the box with Sitecore. Your component uses Datasource Folder item as datasource and that datasource will be published. And it's your own code which takes children of that datasource and uses them to displ... | Issue with publishing "related items" from Experience Editor
I have a Sitecore 8 project where we have created a component for the editors to use.
A component takes Datasource of "Datasource-Folder" with X numbers of "Datasource-Item" below.
The tree looks like this:
Globals
Datasource Folder
Datasource Item1
... | |
You can remove access to /sitecore/templates/System/Layout/Rendering Parameters/Standard Rendering Parameters/Caching
Navigate to the item
Open Security tab
Click on Assign button
In the dialog which will appear select user or group (preferably) from whom you would like to hide the section
Remove the inheritance for ... | Locking down Sitecore rendering caching
Sitecore has some lovely granular security permissions that can help us stop users doing things which can break the site, however one thing I can't obviously see is how to limit access to the caching panel on the control properties when adding components to pages.
It's not th... | |
In my mind, Profiles are like different facets of a users' interaction with a website, and patterns are combinations of values for those facets to form a type of user. A user will build up profile values during their visit to a site depending on how you configure your site. Profiles are made up of profile keys, you can... | Sitecore Personalisation - Profiles and Pattern Cards
I'm trying to come up with a good answer to a question I get asked a lot.
Why does Sitecore have both pattern and profile cards?
Outside the standard answer:
profile cards are for tagging content and pattern cards are for visitors
More often than not I see a ... | |
To be honest, I'm not sure if what I describe below will fix the ASYNC_NETWORK_IO issue. Seeing NETWORK_IO lets me think that the issue is more network or server related than being a real Sitecore issue.
However, we have also seen high loads due to EventQueue table activity. With the help of Sitecore Support we've com... | SQL wait times on EventQueue
Has anyone seen large wait times in SQL Server related to the Event Queue? Specifically, we are seeing ASYNC_NETWORK_IO being reported as a problem when accessing the Event Queue in SQL Server.
We have something like 50+ servers connected to the same core database, I am wondering if the r... | |
Just a thought... Add a hidden textbox as described in the blog post and populate/clear it when the checked state of the checkbox changes. The other way around, check the checkbox if the hidden textbox isn't empty.
| Extending internal General Link dialog with Checkbox in SPEAK
I followed these instructions to add a text field to the internal General Link dialog which works fine.
But now I need a checkbox instead of a text field (anchor) but it still should add a tag with text in the link field like this in raw value view (data-n... | |
In the section of your index (<configuration ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration" />) you should point towards a custom config instead of the default one. You need to create this config though, and there you can add the computed field.
Here's a blog post describing this: http://ggul... | How do I define a custom computed and tokenized field in my index?
I'm currently working in Sitecore 8.1. I would like to add a custom computed field to a specific index, and only that index. I have been able to add the field globally to Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config, but I had to refe... | |
Sitecore doesn't expose the version manager [you've shown] on templates. However, you can use the DB Browser (~/sitecore/admin/dbbrowser.aspx) and manage items, templates, etc. that way. Simply point your browser to http://instance/sitecore/admin/dbbrowser.aspx:
Then navigate to the template you're looking to modify... | How to remove a language version of a data template?
I created German versions of several data templates by accident.
For regular items, there's an option to remove a version at tab "Versions" –> section "Versions":
For templates, though, the whole "Versions" section is missing.
I'd like to remove all template ve... | |
So the answer was to remove this NuGet packaged manually by editing the project.json file. Apparently this package is not needed by the solution so removing it was safe. There must be an issue with the package because even when I readded it from NuGet it still errored. Something Sitecore will need to fix.
| NuGet Package reference issue: Sitecore.Serilog.Framework.Logging
Is anyone out there using the Sitecore Commerce 8.2.1 CTP 3 release VM? I am having a NuGet Package reference issue in the Sitecore.Commerce.Plugin.Sample project wondering if anyone has gotten past this:
Error: Unable to resolve 'Sitecore.Serilog.F... | |
You can check the content of your exported package (it might be a problem with export not import).
This error can be caused by:
missing page item in the package (there must be at least one index.html file)
First selected index.html has no information about exported language.
Open your package and if there is a inde... | SXA - Import Fails Due to Missing Language Information
I've got a simple scenario. I export a site (single page), then try to import the exact same zip file.
I get an error that states:
Could not find language information in the zip file. Please make sure
the package is importable.
I'm running Sitecore 8... | |
I have not attempted this and have no idea how well this would work in practice. It's just an idea.
One way to handle it might be to just use a versioned field with language fallback and then add a customization that restricted editing to the "master language". You could use an item:saving handler to intercept an ed... | Workflow of shared / language-independent fields
Sitecore workflow will only apply to versioned fields, since it works by preventing publishing of unapproved item versions. However what if I have a language-independent field (such as an image, number, or price) which I need to workflow? Are there approaches which allo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.