vtiSetMetaTag

C++: long vtiSetMetaTag(BSTR pszPageUrl, BSTR pszWebUrl, BSTR pszKey, BSTR pszValue, long lIndex, long flags);
VB: vtiSetMetaTag(PageUrl as String, WebUrl as String, Key as String, Value as String, Index as Long, Flags as Long) as Long

Description

Provides a way to set a meta tag in the HEAD section of the given FrontPage document.

Return Value

1 - success

0 - failure

Parameters

PageUrl is the either the full URL of the page, or the web-relative URL of the page.

WebUrl is either NULL (if you specify a full PageUrl) or the URL of the FrontPage web which contains PageUrl.

Key is the name that will be used for the tag.

Value is the value that will be used for the tag.

Index is a number specifying which tag you want to set in case there are several with the same name (as given by the Key parameter). Set it to –1 to always append a new meta tag.

Flags should be set to 0 to set a normal meta tag or 1 to set an “http-equiv” meta tag. When set to 0, the HTML will look like this:

   <meta name="key" content="value">

When set to 1, the HTML will look like this:

<meta http-equiv="key" content="value">