Smartstore
Smartstore copied to clipboard
Changes in IPageAssetsBuilder (Html.Add*Parts())
The extension methods for HtmlHelper (SmartStore.Web.Framework.UI.LayoutExtensions) has been removed. IPageAssetBuilder should be used directly instead, which is now exposed by base SmartRazorPage (property AssetBuilder)
| Old | New |
|---|---|
| Html.AddBodyAttribute() | Removed. Use AssetBuilder.BodyAttributes |
| Html.AddBodyCssClass() | Removed. Use AssetBuilder.BodyAttributes |
| Html.SetHtmlId() | Removed. Use AssetBuilder.RootAttributes["id"] = "value" |
| Html.HtmlId() | Removed. Use AssetBuilder.RootAttributes["id"] |
| Html.AppendScriptParts() | AssetBuilder.Append(Head)ScriptParts() or <widget zone="scripts"><script...></script></widget> |
| Html.AddScriptParts() | AssetBuilder.Prepend(Head)ScriptParts() or <widget zone="scripts" prepend="true"><script...></script></widget> |
| Html.SmartScripts() | Removed. Handled by ZoneTagHelper. |
| Html.AppendCssFileParts() | AssetBuilder.AppendCssFileParts() or <widget zone="head_stylesheets"><link.../></widget> |
| Html.AddCssFileParts() | AssetBuilder.PrependCssFileParts() or <widget zone="head_stylesheets" prepend="true"><link.../></widget> |
| Html.SmartCssFiles() | Removed. Handled by ZoneTagHelper. |
| Html.AppendTitleParts() | AssetBuilder.AppendTitleParts() |
| Html.AddTitleParts() | AssetBuilder.PrependTitleParts() |
| Html.SmartTitle() | AssetBuilder.GetDocumentTitle() |
| Html.AppendMetaDescriptionParts() | AssetBuilder.AppendMetaDescriptionParts() |
| Html.AddMetaDescriptionParts() | AssetBuilder.PrependMetaDescriptionParts() |
| Html.SmartMetaDescription() | AssetBuilder.GetMetaDescription() |
| Html.AppendMetaKeywordParts() | AssetBuilder.AppendMetaKeywordParts() |
| Html.AddMetaKeywordParts() | AssetBuilder.PrependMetaKeywordParts() |
| Html.SmartMetaKeywords() | AssetBuilder.GetMetaKeywords() |
| Html.SmartMetaRobots() | Removed. Handled by a TagHelper. |
| Html.AddAppendCustomHeadParts() | Removed. Use <widget zone="head" prepend="true">...</widget> or AssetBuilder.AddHtmlContent("head", ...) |
| Html.CustomHead() | Removed. Handled by ZoneTagHelper. |
| Html.AddCanonicalUrlParts() | AssetBuilder.AppendCanonicalUrlParts() |
| Html.AppendCanonicalUrlParts() | AssetBuilder.PrependCanonicalUrlParts() |
| Html.CanonicalUrls() | Removed. Handled by ZoneTagHelper. |
| Html.AddLinkPart() | Removed. Use <widget zone="head_links"><link.../></widget> or AssetBuilder.AddHtmlContent("head_links", ...) |
| Html.LinkRels() | Removed. Handled by ZoneTagHelper. |