Added support for friendly names and thumbnails in theme, layout, and container components. Added fallback support during loading for themes, layout, and containers.
This commit is contained in:
@ -13,15 +13,13 @@
|
||||
DynamicComponent = builder =>
|
||||
{
|
||||
var layoutType = Type.GetType(PageState.Page.LayoutType);
|
||||
if (layoutType != null)
|
||||
if (layoutType == null)
|
||||
{
|
||||
builder.OpenComponent(0, layoutType);
|
||||
builder.CloseComponent();
|
||||
}
|
||||
else
|
||||
{
|
||||
// layout does not exist with type specified
|
||||
// fallback
|
||||
layoutType = Type.GetType(Constants.DefaultLayout);
|
||||
}
|
||||
builder.OpenComponent(0, layoutType);
|
||||
builder.CloseComponent();
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user