nopSolutions / nopCommerce-Docs

nopCommerce documentation
https://www.nopcommerce.com/
69 stars 154 forks source link

Mistake in the "Adding CSS and JS resource files into nopCommerce Plugin" documentation page #442

Closed AndreiMaz closed 1 year ago

AndreiMaz commented 1 year ago

There is a mistake in the documentation on the page for: "Adding CSS and JS resource files into nopCommerce Plugin", in the first line:

//Loading CSS file
@NopHtml.AddCssFileParts(ResourceLocation.Head, "~/Plugins/{PluginName}/Content/{CSSFileName.Css}", excludeFromBundle = false);

//Loading js file
//Third parameter value indicating whether to exclude this script from bundling
@NopHtml.AddScriptParts(ResourceLocation.Footer, "~/Plugins/{PluginName}/Scripts/{JSFileName.js}", excludeFromBundle: true);

As you can see in the first line, The ResourceLocation doesn't exist for the AddCssFileParts method. Also the excludeFromBundle in the first line has a: "=" when it must be a: ":".

Moved from https://github.com/nopSolutions/nopCommerce/issues/6812

DmitriyKulagin commented 1 year ago

Closed #442