Questions tagged [habitat]
Questions on Habitat - the implementation (https://github.com/Sitecore/Habitat/). For questions on the Helix guidelines themselves, use the helix tag.
81
questions
18
votes
2
answers
1k
views
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 ...
18
votes
1
answer
690
views
Broken Links when using Tokens
I have a Sitecore 8.1 multisite environment and when I scan for broken links all items that are using tokens are falsely reported as having broken links.
For example:
A datasource of an item is:
$...
15
votes
2
answers
1k
views
Should Habitat be used as a starter kit?
I have seen some really great examples at how to build a website using Habitat. In many ways it contains a good percentage of features that I need.
Is this something that is production-ready and ...
14
votes
1
answer
733
views
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 ...
10
votes
1
answer
404
views
Initialize service in pipeline to be available through one httprequest
We're using Sitecore 8.2, habitat.
I have a service that I need to use throughout a full HTTP Request. This service should be instantiated once (we use dependancy injection) and then be available ...
9
votes
1
answer
2k
views
Working on Habitat with VS 2017
Set up the habitat solution all nice and smooth. However when trying to run the gulp task to get unicorn to sync I get a bunch of errors like this in the gulp output:
error MSB4019: The imported ...
8
votes
4
answers
15k
views
Excluding files like web.config when using publishing in VS 2017
I am trying to find out how to exclude files when using the publishing feature in VS (2017 to be exact).
The documentation is not great, but it seems adding
<ItemGroup>
<Content ...
8
votes
3
answers
821
views
Benefit of dynamic binding for components like header and footer
Is there really any benefit of having header and footer assembled through dynamic binding (placeholder) in comparison to static binding. Sitecore habitat project based on helix uses a lot of common ...
7
votes
3
answers
3k
views
Sitecore 9 and Habitat
We are considering using Sitecore 9.0 on a new project but we have a requirement to use Habitat. The Habitat example is designed for Sitecore 8.
What do you see as the main pain points in using ...
7
votes
1
answer
186
views
Is there any way to avoid duplicated TDS files/items in Helix based solution?
We have a solution based on Helix principles and we have separated TDS projects per Feature. For instance like this:
Search
sitecore/templates/Feature/Search/
Navigation
sitecore/templates/Feature/...
6
votes
1
answer
745
views
Publish single Habitat project
In Habitat, we have gulp tasks for:
Publish All Projects
Publish-Foundation-Projects
Publish-Feature-Projects
Publish-Project-Projects
I want to publish a single Project. I can use msbuild, as ...
6
votes
2
answers
3k
views
Sitecore Habitat - GULP is not running sync unicorn task and neither giving any error
In Sitecore habitat project, I am running task '05-Sync-Unicorn' in VS task running explorer but it does nothing and just displays "Starting '05-Sync-Unicorn'" in console (even doesn't produce any ...
5
votes
2
answers
390
views
Does the package.xml file in Habitat project help to deploy to server and how?
I'm able to update the package.xml using below script in command-line:
gulp -b "D:\projects\Habitat" --color --gulpfile "D:\projects\Habitat\Gulpfile-ci.js" CI-Do-magic
package.xml is located here ...
5
votes
2
answers
923
views
Exception when running step 05-Sync-Unicorn in Habitat - HMAC provided by client: MicroCHAP.SignatureResult
I have a Habitat Solution for Sitecore 9.0 Update 1. Trying to run auto Sync "05-Sync-Unicorn". when I ran this task, getting below warning in the log file:
[Unicorn-Auth] CHAP authentication ...
5
votes
3
answers
4k
views
Helix Install Issue - Permissions on serialization folder [closed]
Having a problem on a fresh Habitat setup... followed all steps, publish projects etc, but now I'm getting this error:
Access to the path '$(sourceFolder)\feature\accounts\serialization' is denied.
...
4
votes
1
answer
1k
views
Helix Feature references to Feature(s)
I am new with the Sitecore and Helix as well. I'm studying the Helix and its example - Habitat. I think it's missing the example of Feature get references from other Features.
Regarding the Feature-...
4
votes
1
answer
1k
views
Error setting up Habitat instance of Sitecore with "Could not instantiate event handler." error
While setting up an instance of the Habitat demo site, I have followed all the steps as in the past but when the Sync Unicorn Gulp task begins, it exits with the following error:
Could not ...
4
votes
6
answers
12k
views
Unable to resolve serialized item error during Unicorn sync task while setting up Habitat
I am trying to setup Sitecore Habitat but getting some wiered issue when the Unicorn sync starts.
I have all the steps performed as mentioned in the below link,
https://github.com/Sitecore/Habitat/...
4
votes
1
answer
155
views
Install Sitecore 9.0 update 2 encountered warnings
I'm trying to install Habitat on my machine, according to this instruction 01-Getting-Started. However when I look back the script log, I got as bellow message
Should we skip these warning messages ...
4
votes
1
answer
615
views
Could not get pipeline: canShowEditor (domain: ExperienceEditor) [closed]
I am getting the following error after installing the Habitat solution for Sitecore 9, from https://github.com/sitecore/habitat/tree/feature/v9 , and pointing it at a clean Sitecore install...
Could ...
3
votes
1
answer
336
views
Habitat TDS version with Sitecore 8.1.151003
Does anybody have any advice on how to get Habitat running with Sitecore 8.1 Initial Release (revision 151003)? Obviously I'd need to use an older version of Habitat, but having trouble finding which ...
3
votes
1
answer
2k
views
Language locale not getting added to URL
After configuring the sitecore Habitat based on the instruction from GIThub, we could see sometimes locale code is getting added and not added to the URL.
This is happening inconsistently.But the ...
3
votes
1
answer
583
views
How to set workflows in a Sitecore environment with SXA and Helix?
We are working on a Sitecore 8.2 project which is based on Helix and SXA.
Now we want to implement Sitecore workflows. As of definition of Helix, you set them on page/data templates in the project ...
3
votes
2
answers
547
views
Habitat setup host name confusion
In the wiki it states that default url is http://habitat.dev.local/
and in App_Config\Include\Project\z.Habitat.DevSettings.config, it states that
rootHostName = "dev.local"
If we implement default ...
3
votes
1
answer
8k
views
Could not find configuration node: databases/database[@id='core']
Im new to Sitecore and I'm trying to get create a new instance for a existing solution. I think I have it almost built but I'm running into a issue when I use the default route of "/sitecore".
Im ...
3
votes
1
answer
259
views
LocalDatasource computed field feature not working for particular template
We're making use of the LocalDatasource module in our build.
It works fine apart from one particular template.
The local_datasource_content field gets populated on the master index, but it is empty ...
3
votes
1
answer
661
views
Setting the ConnectionStrings.config transformation in Habitat
We are using habitat in our project for a multisite implementation.
Can we setup the ConnectionStrings.config transformation in the Project/common layer of the habitat framework. Is this doable?
2
votes
1
answer
714
views
Habitat multisite solution structure example
I've created my own helix based solution on the habitat project and I need to support multiple sites in this solution. But I don't know how to structure the Project folder here I need to create is the ...
2
votes
1
answer
1k
views
PopulateManagedSchema during installation returns error 500
I am trying to clone habitat version on my machine but I am getting following issue, What can be the reason for this error?
Error requesting
http://sitename/sitecore/admin/...
2
votes
2
answers
4k
views
Unicorn sync error when installing Habitat
I'm trying to install Habitat the first time under the instruction from the Habitat Wiki page. I've installed the correct version of the instance and WFFM module, and also have the MongoDB running.
...
2
votes
1
answer
81
views
Why does Habitat need to compare User Profile information?
In Habitat, the UserProfileService class has a method for validating users, which is called on login.
public bool ValidateUser(User user)
{
if (!string.Equals(user.Domain.Name, Context.Site....
2
votes
1
answer
53
views
Is it good approach to have one common functionality in Habitat (feature layer)
In our application we have different pages like Employee List, Product List, Voting List, FAQ list.
Is it good approach to have different Views to display the List mentioned above
OR
can we create ...
2
votes
1
answer
409
views
Sitecore 9 as offline installer
I have to setup Sitecore 9 Update 1 on the VM machine where no internet is available due to company policies. I have installed rest of the dependent tools like VS 2017, SQL Server 2017, SOLR and other ...
2
votes
2
answers
2k
views
Sync-Unicorn' errored "Cannot read property '0' of undefined at unicorn.js" error while setting up Habitat
I am setting up habitat and I was going to installation instructions. When I run “default” task from Visual Studio 2015 Task Runner Explorer, I get the following error.
00:04:18] '05-Sync-Unicorn' ...
2
votes
0
answers
181
views
Habitat gulp default task copies all files
After downloading the habitat feature branch from github, running the gulp task 'default' copies over every file within a project file (.cs, .csproj, etc) into the web root rather than just the files ...
2
votes
0
answers
79
views
Publish performance for Habitat VS 2017 and VS 2015
We are two developers working together on a Sitecore project, based on Habitat. I'm using VS 2017, while my colleague is using VS 2015. Our computers are roughly the same, with mine having more memory ...
2
votes
1
answer
888
views
Sitecore Habitat Unicorn Sync Issue
I'm getting an error during the gulp step to sync Unicorn while trying to set up Habitat. Here is the error in the unicorn console:
ERROR: Object reference not set to an instance of an object. (...
1
vote
1
answer
3k
views
Sync.ps1 is not digitally signed. You cannot run this script on the current system
I'm using Sitecore 9 (Update 2) and have installed Powershell module as well.
Did anyone come across this while running the Unicorn task?
[09:10:57] Starting 'Sync-Unicorn'...
Error: C:\Sitecore\...
1
vote
1
answer
2k
views
Habitat Gulpfile.js error in Visual Studio but OK on Cmd Line
In the Task Runner Explorer, gulpfile.js is failing to load, and in the output window I'm seeing
gulp.task('CI-html', () => {
^
SyntaxError: Unexpected token )
If I comment ...
1
vote
3
answers
494
views
Issue while Setup Habitat 1.8.1 on Sitecore 9.2 "Error: spawn C:\Windows\microsoft.net\Framework64\v(not used)\msbuild.exe ENOENT"
I face an issue while setup Habitat 1.8.1 on Sitecore 9.2
I'm using Visual Studio 2019 installed in 'D' drive, not in 'C' drive, node 10.18.0, gulp CLI version: 2.3.0, gulp Local version: 3.9.1.
I ...
1
vote
2
answers
384
views
Multiple fields with the same name in Habitat
In Habitat, I defined two templates: _idenity and _footer, and each of them has the same field name but different ID values,for example IDA and IDB.
The start root item inherits both these templates.
...
1
vote
1
answer
109
views
Install-SitecoreConfiguration : One or more errors returned from Solr request
I have cloned following Habitat project on my local environment:
https://github.com/Sitecore/Habitat/
And here is the link stating that solr 7.2.1 is supported
https://github.com/Sitecore/Habitat/...
1
vote
1
answer
254
views
Is Habitat Implementation using ReactJs, for all (3) Sitecore Headless Modes available?
Is there any reference implementation available from Sitecore or 3rd Party for Sitecore Headless Mode (API Mode, Integrated Mode, SSR Mode) & React Js.
I am expecting a sample project like ...
1
vote
1
answer
63
views
Base Controller in Habitat
We are using habitat in our project. In most of our controller class of each feature, we are doing a same service call.
So we are planning to have a Base Controller to avoid duplicates.
Since we ...
1
vote
1
answer
880
views
Unable to Update Data Templates in Sitecore Commerce 9
I just installed a fresh instance of Sitecore Commerce 9.0 Update 1 and then start to play with Habitat Home (content and commerce). After installing all stuff when I go to the Content Editor under ...
1
vote
2
answers
2k
views
How to debug Sitecore Helix Feature using Visual Studio 2017?
I'd like to debug a Sitecore Helix Feature using Visual Studio 2017.
Is it possible or just the Website Project?
1
vote
2
answers
4k
views
Issue in loading Gulp Tasks in VS.NET 2019 "Failed to load"
I have installed Habitat successfully and I have the Sitecore 9.2 running successfully.
I have node (v14.4.0)
gulp verion: CLI (2.3.0) Local (3.9.1)
But I am stuck in VS.NET2019 after opening the ...
1
vote
1
answer
409
views
DOT NET framework version in Habitat 1.7 for Sitecore 9.1
I installed Habitat 1.7 for Sitecore 9.1. Whenever I open web.config file of any module, its showing DOT NET framework as
<system.web>
<compilation debug="true" targetFramework="4.6.2" /...
1
vote
2
answers
508
views
After deploying Habitat to Azure I am getting rendering error
While opening the item in the Experience editor I am getting a lot of errors like the below:
Error Rendering View: /Views/MediaFeature/LightboxVideo.cshtml: Error
while rendering view: '/Views/...
1
vote
1
answer
236
views
Habitat Login Process
Looking at the way the Habitat site logs users in has got me thinking.
It seems overly complex to me. I presume I'm missing some important concept, but what?
The feature accounts controller calls ...