Questions tagged [helix]

Question regarding Helix: a set of overall design principles and conventions for Sitecore development on helix.sitecore.net

Filter by
Sorted by
Tagged with
39 votes
5 answers
6k views

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 ...
Eldblom's user avatar
  • 910
26 votes
1 answer
821 views

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 ...
Kasper's user avatar
  • 2,156
21 votes
1 answer
2k views

Sitecore Helix/Habitat and Visual Studio structure

The general trend these days is to limit the number of projects in a visual studio solution: The two project solution Project antipattern Multiple projects considered harmful Evolutionary project ...
Ethan Schofer's user avatar
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 ...
jaggedaz's user avatar
  • 191
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 ...
Michael West's user avatar
  • 18.2k
14 votes
3 answers
3k views

Publishing projects fails because of locked files

The solution I am currently working on, the team made the decision to use habitats way of publishing projects in our solutions via gulp tasks. We are finding out however that periodically when we try ...
Anicho's user avatar
  • 1,419
13 votes
1 answer
2k views

How or where should I add a required connection string for a feature in Helix?

A feature requires adding a new connection string. Which should be the way to do this in Helix?
jgondev's user avatar
  • 335
13 votes
2 answers
870 views

Helix deployment - How to use msdeploy

Currently we have a setup where we have a single Sitecore solution (not Helix) and we use msdeploy for deployment. This works great as we have the exact same package that is deployed on all ...
Filip Verswijver's user avatar
12 votes
2 answers
815 views

Changing the Helix file system folder structure

Looking at Sitecore Habitat, each Visual Studio project is in a folder named 'code'. In Visual Studio, by default this folder is named the same as the project. I can rename this folder, but I have to ...
Ethan Schofer's user avatar
11 votes
2 answers
568 views

Helix Best Practice when developing components for the Marketplace

So I've been planning to develop some modules for the community to place in the marketplace but also as code on GitHub that people can extend from. Having said that, I'm hoping to develop these ...
Dylan Young's user avatar
  • 4,314
11 votes
2 answers
529 views

Where should environment-specific configs be placed in Helix (Habitat) compliant solution?

Where should environment-specific configs be placed in Helix (Habitat) compliant solution (in the VS solution and the file system), such as connection strings?
TamerM's user avatar
  • 1,682
11 votes
1 answer
982 views

TDS install the sitecore connector for each project in my solution

I am using a Helix/Habitat-inspired setup in which the Sitecore items of my solution is split into a number of smaller projects in the different layers (Foundation, Features and project). Currently we ...
pwind's user avatar
  • 963
10 votes
1 answer
2k views

TDS: Sync Project with Sitecore for entire solution

I am working on a large Sitecore solution based on the Helix principles, with +20 different TDS projects. In general this works fine, but if one of the developers changes a value for a "Deploy Once" ...
pwind's user avatar
  • 963
10 votes
2 answers
744 views

Helix, breadcrumbs and wildcards

We have a (mvc) solution based on Helix principles that has a breadcrumb feature. So far, all worked fine and there were no dependencies to any other module. Now we added a new feature (blog) that has ...
Gatogordo's user avatar
  • 20.1k
10 votes
1 answer
2k views

Few questions related to Helix

Code Generation, GlassMapper for each feature: We have following TDS implementation in our solution: One TDS project for each feature/foundation projects to pull corresponding items related to those ...
Kiran Patil's user avatar
9 votes
4 answers
718 views

How to handle alternative presentation for a helix Feature module

Say I have a Feature layer module in my Helix compliant solution, e.g. the LinkMenu component in Sitecore.Feature.Navigation module from Habitat. Assuming I am happy with the way this works from a ...
Matthew Dresser's user avatar
9 votes
1 answer
405 views

TDS Code Generation - What options do I have to run this away from the IDE?

We are able to run the code generation through the Visual Studio IDE (Right click -> Regenerate for all items) Are there other options available, such as Project Build targets or an external program ...
Dan's user avatar
  • 372
8 votes
4 answers
14k 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 ...
Morten Ljungberg's user avatar
8 votes
1 answer
608 views

How to Connect controller rendering with Interface Template

I am trying to create a simple Image controller Rendering and I don't want to add the template interface to my page type, because I want to add the image dynamicaly to my site. So here my "problems" ...
squadwuschel's user avatar
  • 1,165
8 votes
2 answers
2k views

Auto Generating Glass Models in Helix Implementation

So I am architecting a solution that uses Glass in a Helix implementation. We would like to automatically generate the Glass models using a T4 template, but one of the challenges we are running into ...
Dylan Young's user avatar
  • 4,314
8 votes
1 answer
985 views

How to create TDS projects in Helix setup?

I am working on migrating an existing solution to Helix conventions. The existing solution has TDS projects for Master, Content and Media. How do I set up TDS projects in the newly refactored solution ...
Hetal Dave's user avatar
7 votes
4 answers
2k views

Habitat / Helix - Is it OK to have dependencies between Foundation level modules

Looking through the Habitat solution, I noticed that the Sitecore.Foundation.Theming module references the Sitecore.Foundation.SitecoreExtensions module. I thought modules were meant only to reference ...
Matthew Dresser's user avatar
7 votes
1 answer
185 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/...
Tamás Tárnok's user avatar
7 votes
2 answers
321 views

Error Related to GetEnd() Method in a Custom Rendering Wrapper - Sitecore 8.2

I have been going through the book Professional Sitecore 8 Development by Phil Wicklund and Jason Wilkerson. The book has been very helpful to me but I've got an issue I haven't been able to figure ...
Iceape's user avatar
  • 617
7 votes
1 answer
1k views

IoC in Helix architicture

I am using Castle.Windsor on my project which based on Helix principle. Where the best place to initialize IoC in Helix? Where I should register container? Foundation/Project layer(Common project or ...
Vlad's user avatar
  • 1,420
7 votes
1 answer
1k views

Sitecore component CSS and script handling in an HTTP/2 environment

First project using Helix coming up. In our previous project we've used HTTP/2 on the CDN, so we have adopted a lot of new best practices. One of the most important new best practices in HTTP/2 is ...
chilly's user avatar
  • 91
6 votes
3 answers
631 views

Migrating legacy solution with 10 sites, to Helix architecture

We have existing Sitecore sites (around 10 sites) and now we want to convert those to helix architecture. Could you please suggest best way to move these projects to helix ? Do we need to do it start ...
Santosh Parida's user avatar
6 votes
1 answer
2k views

Sitecore Habitat with Glass Mapper

Just wondering if I use glass mapper or any DI framwork then will I need to implement in each project separetly? otherwise if I create a separate project for DI or Glassmapper and add the reference ...
S.Kazmi's user avatar
  • 906
6 votes
1 answer
559 views

Is there a way to deploy assembly bindings out using the gulpfile

We are setting up a new Helix based system, and are looking at making the development process as easy as possibly from a devOps point of view, I seem to have a disconnect however in assembly versions ...
Henry Tait's user avatar
6 votes
1 answer
874 views

How do I configure Octopus Octopack to deploy my Helix/Habitat projects?

In the Helix/Habitat style, I have a solution with many 'web projects'. So if using octopus Deploy / Octopack, should I have a package for each Web project in my solution? If so, how/where does each ...
Phil's user avatar
  • 63
6 votes
2 answers
511 views

Flexible way of sorting search results in a Habitat solution

I am looking for a flexible way of sorting the results from a search in a Habitat structured solution. I tried different approaches but couldn't find one that doesn't need a hardcoding way of doing ...
Adrian C.'s user avatar
  • 534
6 votes
4 answers
338 views

Content search related to feature

I am working on Helix based project. I've already implemented Foundation.Indexing project and also I've implemented news search and blog search based on Foundation.Indexing. Now I am working on site ...
Vlad's user avatar
  • 1,420
5 votes
3 answers
8k views

When using Gulp to build a Helix based solution, what does "MSBuild failed with code 1" mean?

I bought the Professional Sitecore 8 Development book and I am following the Sitecore Helix architecture approach. And following the examples in the book and online I am using Gulp in the Task Runner ...
Corey Burnett's user avatar
5 votes
2 answers
708 views

Helix: Is it OK to reference Project layer content items by name in the Feature layer

Is it ok for a Feature module to reference the name (nothing else) of an item in the project layer? As far as I can tell this would be classified as a weak dependency as it is only in the name of an ...
Matthew Dresser's user avatar
5 votes
2 answers
612 views

How to view history of yml files (before they have pending changes)

Is there any way in regular Visual Studio (2017) to view the history of individual yml (unicorn serialization) files? Once you have changed a serialized Sitecore item it appears under the 'Changes' ...
Matthew Dresser's user avatar
5 votes
2 answers
521 views

Helix and Computed Index Fields with DI

In my solution, I have some Computed Index Fields that I need to add that combine the values of fields from templates that belong to multiple Project-layer modules. I am using DI for initializing my ...
Zachary Kniebel's user avatar
5 votes
2 answers
294 views

Helix Representation for Image Callout with Multiple structure

The project site will have multiple Image Callouts that will be used in various sections of the site. These Image callouts have multiple forms. Something like below: Questions: With above ...
Amin Sayed's user avatar
5 votes
2 answers
2k views

Using Unicorn Transparent Sync

I am done with unicorn sync using gulp task provided in Sitecore habitat sample project. I need some clarification on below points. As per my understating, if transparent Sync is enabled then auto ...
S.Kazmi's user avatar
  • 906
5 votes
1 answer
360 views

Why does the Habitat sample solution have a Sitecore rocks connection for each project

When browsing through the Habitat solution, I noticed that every project in the solution has a csproj.sitecore file (I assume this is for Sitecore Rocks?). So where we have Sitecore.Feature.Media....
Matthew Dresser's user avatar
5 votes
2 answers
420 views

How to integrate Sitecore Modules in Helix setup?

We are developing a Sitecore application and might need to install some Sitecore shared modules as we move forward. How best I should integrate the source code of these modules if needed? Do I create ...
Hetal Dave's user avatar
5 votes
1 answer
779 views

Custom View Engine for Razor View Helix-type default paths

Has anyone been able to make a habitat-compatible razor view engine? Basically I'd like something that can dynamically search "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml" "~/Views/{<...
Mark Gibbons's user avatar
  • 5,582
5 votes
2 answers
409 views

How should I split features in Helix based solutions?

I just came to that problem that, in a multisite solution we need to deliver the same feauture but with different Controller and View. As we are implementing features indepently for Projects how ...
Tamás Tárnok's user avatar
5 votes
1 answer
2k views

How to use Glass mapper with base template

I have a Helix based solution using Glass mapper. I want to build a Feature module with a component that renders an item and its children with a controller rendering. Per Helix guidelines, my feature ...
Matthew Dresser's user avatar
5 votes
1 answer
627 views

Helix and field sources

In a feature for an event I have 2 templates: Speaker and Session. A session has a speaker, so in the session template we have a field to select a speaker. As project templates, I also created ...
Gatogordo's user avatar
  • 20.1k
4 votes
1 answer
771 views

Automatically create data source's for controls when user adds page from experience editor

Hello I'm trying to override the AddFromTemplate pipeline to manually create datasources for the components inside the template that i'm using. What I would like to accomplish When a user clicks the ...
scouty's user avatar
  • 413
4 votes
2 answers
947 views

Patching custom pipeline parameters in project level config file

I have created a custom pipeline in a Foundation level Helix module. At the moment it has a single processor which can have multiple parameter configuration elements. In my project layer, I want to ...
Matthew Dresser's user avatar
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-...
Kim's user avatar
  • 123
4 votes
1 answer
441 views

Dynamic vs. Static Renderings in Habitat project

In Habitat sample project meta renderings and few similar sort of renderings have been used as dynamic rendering. Shouldn't such renderings be used as static rendering in layout? Is there any specific ...
S.Kazmi's user avatar
  • 906
4 votes
1 answer
514 views

Why Sitecore habitat is not following best practice to use datasource everywhere

Sitecore best practice says to use datasource but habitat doesn't seem to follow this. At many places in habitat, content is in the item, instead of linked through datasource. Can someone explain me ...
S.Kazmi's user avatar
  • 906
4 votes
1 answer
136 views

Should Foundation.Abstractions be a single module or a grouping of granular modules?

I've been thinking a lot about the organization of Foundation.Abstractions modules (organizing base-types for IoC that Feature - and potentially Foundation - modules use), and I am a bit torn on ...
Zachary Kniebel's user avatar