glass mapper - How to set up Sitecore 8.1 MVC project with multiple website -
i planning set sitecore 8.1 mvc project 2 website in 1 visual studio solution approach should follow:
approach 1:
should create 2 mvc project in 1 solution
sample.sc.model ( c# class library )
sample.sc.utility ( c# class library )
sample.sc.web.website1 ( mvc project ) ( project contains layout,sublayout , specific website1 )
sample.sc.web.website2 ( mvc project ) ( project contains layout,sublayout , specific website2 )
aproach 2:
should create 1 mvc project , put website1 layout , website1 sublayout in website1 folder , website2 layout , website2 sublayout in website2 folder
sample.sc.model ( c# class library )
sample.sc.utility ( c# class library )
sample.sc.web.website ( mvc project )
****folder structure under sample.sc.web.website node****
layout
website1 ( contains layout specific website1 )
website2 ( contains layout specific website2 )
sublayout
website1 ( contains sublayout specific website1 )
website2 ( contains sublayout specific website1 )
i planning use glassmapper , tds in project.
thanks
i think you're looking compelling technical reason choose 1 approach on other, don't think there one.
ultimately both approaches once deployed result in single website. while people have different preferences, both work.
much of come down similarities , differences between sites. separate , unrelated? if might find option 1 preferable because there less clutter per project.
however, if 2 sites share elements might simpler manage using option 2.
i don't think use of tds/glass should influence decision either way.
Comments
Post a Comment