If I bind a component statically, I can't swap out the datasource from the page editor:

@Html.Sitecore().Rendering("/*Path to rendering*/",
      new { DataSource = "/*Path to datasource*/" })

Using a placeholder lets me swap datasources, but requires more overhead and can let the content editor insert multiple components where there should only be one:


Is there a middle-ground here? I want the content editor to be able to change datasources without having to use a placeholder.

Related posts

Recent Viewed