I have a template in the project layer. Let's call it
Author. That template inherits from a base template called
_Author which is a template in the feature layer. Now I create a list of Authors in my Global folder. That list of authors is synchronized by the project layer.
Now I set up a template in the project layer called
Article which inherits from a base template called
_Article in the feature layer. The
_Article template has a droplink field called Author which has a datasource that points to the Author folder in the Global folder.
Now I have a template in the feature layer that references an item in the project layer. What am I missing here? I have looked through Habitat to find a similar scenario, but I can't find any. Since this is a fairly common scenario I must be missing something.
This, however, seems to be the exact same scenario as with the site-specific datasources in Habitat where a pipeline is used to determine datasource settings. That setting then references a folder which is syncronised by the project layer. That way there is no reference between the rendering in the feature layer and the datasource in the project layer.
Does that mean that the solution is to create a similar pipeline solution for field datasources? If yes, I am surprised that this is not part of the Habitat solution...