22
votes
Accepted
Viewing the compiled Sitecore config on Content Delivery?
It's easier Today if you work with Sitecore 9, you can do it from your Content Management server. Just go to /sitecore/admin/ShowConfigLayers.aspx and select Content Delivery.
This is article ...
10
votes
Accepted
Is there any way to add the custom Link manager provider just for a particular site
There is no out of the box way to make custom link manager configurations scope to a particular site, however you could always include that logic in the custom link manager itself. You can make your ...
10
votes
Accepted
Can v7 and v8 coexist on the same server
You can have multiple versions of Sitecore on a single server.
Firstly, just install them into different folders and have them pointed to different Databases.
And secondly either have them both ...
9
votes
Accepted
What's the use of the publisher site?
The fast answer is that the publisher site is used for publishing related jobs. But, you probably already knew that.
Why is publisher used in Publishing?
When one pulls the covers back a little on ...
8
votes
How should I remove the default Home item?
It is safe to delete the default Home item. I have done so on many projects.
The only place where you need to update the reference is the default site definition:
<site
name="website"
...
...
8
votes
Accepted
Hostname not being retrieved for the website definition
It's lowercase hostname in your defintion. There must be capital N: hostName. Site attributes are case sensitive.
Should be:
<site name="website" enableTracking="true" virtualFolder="/" ...
8
votes
Accepted
Preview an unpublishable item
It is not possible to preview an item when you change the publish restrictions and make the item (or one of it's parents) not Publishable. The logic being, from my understanding, is that you are ...
7
votes
Accepted
How to inhibit reaching other site content using domain of first site
The simplest way would be with security. If you give each site a unique domain and then simply deny read access to the {sitedomain}/Anonymous user it would give you what you want.
So the site ...
6
votes
Accepted
Country selection page implementation
Here's how I would approach this:
Define a rendering that shows an overlay on any page it's included in.
When a user selects a country via this rendering:
Send an AJAX request to the server;
Take ...
6
votes
How to inhibit reaching other site content using domain of first site
I have resolved this a few different ways in the past:
Redirects using the IIS Rewrite Module, which is my preferred solution. It does require that the IIS Rewrite Module be installed in IIS, and it ...
6
votes
Accepted
Dash ("-") in Media URLs
Yes, this is a convention that Sitecore uses as triggers for a number of custom handlers:
<customHandlers>
<handler trigger="-/media/" handler="sitecore_media.ashx"/>
<...
6
votes
Is there a reason that I am not able to run my Sitecore 7.2 locally?
Do you have any additional customization in web.config?
If yes, try breaking your web.config and put your customization in separate patch files.
Meanwhile also have a look at the blog post below, ...
5
votes
Accepted
How to get correct site context in micro-site implementation in Sitecore 8.1
The reason why you are receiving the SiteContext as micrositemain is because url.Host will return microsite.mysite.com.
Please see updated SiteDefinition below:
name="micrositemainone"
hostName="...
5
votes
Accepted
What is the optimum value (or range) for MaxWorkerThreads sitecore setting?
I once had to tune a server with Sitecore because we did get a lot of requests and couldn't add more servers (for several reasons). I used this blog as a resource, and although it is a few years old ...
5
votes
Viewing the compiled Sitecore config on Content Delivery?
You can view configuration using below url for CD (Content Delivery from Content Management)
https://cm-url/sitecore/admin/showconfig.aspx?role=ContentDelivery
5
votes
Accepted
Obtaining a site url with correct binding port dynamically
Sitecore.Globals.ServerUrl is set in the Globals.Load function by calling WebUtil.GetServerUrl(HttpContext.Current.Request.Url, false).
The code for that is:
public static string GetServerUrl(Uri ...
5
votes
Accepted
SiteDefinition Config Events - Site Changed to MyCompanyName
This works because of the way that HtmlCacheClear processes the <sites> list.
When you take a peek into the code for HtmlCacheClearer.ClearCache() method, you'll see that it's iterating through ...
5
votes
Accepted
Patching custom pipeline parameters in project level config file
The issue is the extra <settings> node in your project module config, at the moment you're not patching anything but inserting a new entry within the <settings> node (and it's probably not ...
5
votes
Accepted
SSL certificate requirements for Sitecore 9 Update 1
The only site that needs to be https is the xConnect service, though your Sitecore site is extremely highly recommended to be https as well. Since you are an XP0 configuration where everything is on a ...
5
votes
Accepted
Sitecore Experience Accelerator (SXA) site won't render as a sub route where JSS app is the root app
In a nutshell, the JSS app's config patch (usually deployed to \App_Config\Include\zzz\my-jss-app.config) is resolved before SXA sites.
When the SXA module is installed in Sitecore, you get a bunch ...
5
votes
Accepted
How can I access the Sitecore 9 configuration values programmatically?
After struggling with this for a while, finally found the answers.
If what you are trying to read is really a setting following the below format:
<setting name="THE_NAME_GOES_HERE" value=&...
5
votes
IIS home page is getting loaded instead of sitecore 9.3 Home page
Sitecore 9+ by default the sites are secure only. Please try with https://sitecoreinstance93sc.dev.local
Couple of things can be verified with these issues:
Open IIS and right click on the website
...
4
votes
What's the use of the publisher site?
The publisher site is responsible for actually running the publishing of your content.
Simple Answer
The simplest answer that I can give is that this is one of the ways that Sitecore implements multi-...
4
votes
Sitecore Upgrade from 8.0 to 8.1 issue: Required license is missing: Runtime
The path to your license file is set incorrectly. The default value of the license file setting in config is:
<setting name="LicenseFile" value="$(dataFolder)/license.xml" />
If you have not ...
4
votes
Patching custom pipeline parameters in project level config file
This is down to how Sitecore patches child items. The same thing happens if you try to patch the publish:end configuration to add your site in. The problem is that because each of your mapping entries ...
4
votes
Accepted
Minimum hard disk required for Sitecore Installation
I doubt you'll find any recommendation for HDD size because it totally depends on your needs, configuration and needed modules.
However, a basic Sitecore 9 installation is around 2gb without any css, ...
4
votes
Preview an unpublishable item
This issue arises because Sitecore’s preview function is designed to simulate how the site will appear to end users after publication. If an item (or its parent) has publishing restrictions, making it ...
3
votes
Accepted
How do i configure CD Servers by removing unwanted config entries?
Yes there is. Several, in fact. It depends on your Sitecore version.
You should read through the official guide: Configure a content delivery server
It describes things you need to consider, ...
3
votes
How should I remove the default Home item?
You need to check the default site definition and your custom site definition nodes in the config file. It must not include /home path as start path and master as a database.
You don't need to care ...
3
votes
Unable to get the correct `rootPath` from Sitecore.Context.Site
Here's how I solved the problem.
First, I created a helper method GetSiteContext that returns a SiteContext object based on a URL. This helper method iterates through all configured sites and tries ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
site-configuration × 66configuration × 18
multisite × 9
iis × 5
multilingual × 3
sxa × 2
sitecore-client × 2
security × 2
caching × 2
content-delivery × 2
settings × 2
solr × 1
xdb × 1
jss × 1
experience-editor × 1
azure × 1
content-editor × 1
media-library × 1
publishing × 1
upgrade × 1
installation × 1
mvc × 1
pipelines × 1
helix × 1
unicorn × 1