Nucleus .Net Core CMS

HtmlHelpers.LogoHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to render the site's logo.
Logo (IHtmlHelper htmlHelper, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.
Logo (IHtmlHelper htmlHelper, Boolean fallbackToSiteTitle, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
fallbackToSiteTitle Boolean
htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.
Logo (IHtmlHelper htmlHelper, String caption, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
caption String

The alt text of the image element.

htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.
Logo (IHtmlHelper htmlHelper, String caption, Boolean fallbackToSiteTitle, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
caption String

The alt text of the image element.

fallbackToSiteTitle Boolean
htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.