Adds a meta tag to the current page.
Class: YetaWF.Core.Pages.MetatagsManager
Namespace: YetaWF.Core.Pages
Assembly: YetaWF.Core
public void AddMetatag( string type, string content );
type
The type of the meta tag being added. This renders as the tag's name attribute.
content
The content of the meta tag being added. This renders as the tag's content attribute.
Used for rarely used tags.
Many standard meta tags are automatically added based on site settings and page settings, like page keywords, description, noindex, nofollow, noarchive, nosnippet, robots.
The "title" meta tag should not be set directly. Set YetaWF.Core.Support.YetaWFManager.Manager.PageTitle instead. For "keywords", set YetaWF.Core.Support.YetaWFManager.Manager.CurrentPage.Keywords instead. For "description" set YetaWF.Core.Support.YetaWFManager.Manager.CurrentPage.Description instead.
See Also YetaWF.Core.Pages.MetatagsManager ClassYetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com