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
38
votes
5answers
5k 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 ...
25
votes
1answer
627 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 ...
19
votes
1answer
1k views

Sitecore Helix/Habitat and Visual Studio structure

The general trend these days is to limit the number projects in a visual studio solution: The two project solution Project antipattern Multiple projects considered harmful Evolutionary project ...
18
votes
2answers
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 ...
15
votes
2answers
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
3answers
2k 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 ...
12
votes
1answer
860 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?
12
votes
2answers
742 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 ...
11
votes
2answers
466 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 ...
11
votes
2answers
521 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 ...
11
votes
2answers
447 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?
11
votes
1answer
601 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 ...
10
votes
1answer
892 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" ...
10
votes
2answers
512 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 ...
10
votes
1answer
919 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 ...
9
votes
4answers
561 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 ...
8
votes
1answer
308 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" ...
8
votes
2answers
1k 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 ...
8
votes
1answer
757 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 ...
8
votes
1answer
323 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 ...
7
votes
4answers
938 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 ...
7
votes
1answer
151 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/...
7
votes
2answers
217 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 ...
7
votes
1answer
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 ...
7
votes
1answer
710 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 ...
6
votes
3answers
5k 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 ...
6
votes
3answers
388 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 ...
6
votes
1answer
1k 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 ...
6
votes
1answer
434 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 ...
6
votes
2answers
449 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 ...
5
votes
2answers
466 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 ...
5
votes
2answers
109 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' ...
5
votes
2answers
380 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 ...
5
votes
2answers
239 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 ...
5
votes
2answers
1k 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 ...
5
votes
1answer
313 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....
5
votes
2answers
364 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 ...
5
votes
1answer
548 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/{<...
5
votes
2answers
326 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 ...
5
votes
1answer
797 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 ...
5
votes
1answer
1k 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 ...
5
votes
1answer
498 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 ...
5
votes
3answers
163 views

Helix. 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 ...
4
votes
1answer
86 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 ...
4
votes
2answers
630 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 ...
4
votes
1answer
773 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
1answer
392 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 ...
4
votes
1answer
488 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 ...
4
votes
1answer
110 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 ...
4
votes
2answers
409 views

Helix. Moving views to Project layer

I am working on Helix based project. This one is multi-site project. The html for same features different so I've decided to move views to project layer to support html difference. Is it allowed to ...