Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Publish Template

Use this command to publish templates to a specific user group or all user groups.

You can use the Publish Template command in conjunction with the Get Template commands (Get Template and Get Template Info) to migrate templates from one environment to another. You can also use this command to publish templates that already exist in the FromFolder.

Publishing or unpublishing allocation patterns must be defined to all user groups.

When you use a specified GroupFile parameter, invalid entries will be reported, but execution of the command will continue.

Syntax

PUBLISH TEMPLATE Group|All TemplateType|All FileName|All [FromFolder]

where:

  • Group is the user group name or All for all user groups. If you specify ALL for the user group, you must specify Pattern for the TemplateType.
  • TemplateType can be one of the following:
    Value Description

    LINK

    To publish links.

    REPORT

    To publish report templates.

    ALL

    To publish all template types.

  • FileName is the file name of the template (including the file extension) or All for all files.
  • FromFolder is the folder or folders containing the templates and template information, including the CategoryFile and GroupFile. FromFolder can include a complete or partial folder path in the format C:\...\FileName. If the templates and pattern allocation files are in the working folder, you don’t need to specify the drive or path. If the folder name includes spaces, enclose it in double quotation marks.

Syntax example

PUBLISH TEMPLATE All Report All "C:\Program files\Longview\Servers\Reports"

Caution: Always use PUBLISH TEMPLATE ALL PATTERN ALL and PUBLISH TEMPLATE ALL LINK ALL when synching templates to ensure all patterns and links are migrated properly.

Syntax (with an ASCII file)

PUBLISH TEMPLATE @GroupFile @CategoryFile

where:

  • GroupFile is an existing ASCII file containing template user group assignments, with the following syntax:

    Group{TemplateType{FileName

  • CategoryFile is the file name of an existing ASCII file containing template category assignments, with the following syntax:

    FileName{Category

The group file and category file may have been created using the Get TEMPLATE or Get TEMPLATEINFO command.

Syntax example

PUBLISH TEMPLATE @template.idx

See also

Published:

Publish Template

Use this command to publish templates to a specific user group or all user groups.

You can use the Publish Template command in conjunction with the Get Template commands (Get Template and Get Template Info) to migrate templates from one environment to another. You can also use this command to publish templates that already exist in the FromFolder.

Publishing or unpublishing allocation patterns must be defined to all user groups.

When you use a specified GroupFile parameter, invalid entries will be reported, but execution of the command will continue.

Syntax

PUBLISH TEMPLATE Group|All TemplateType|All FileName|All [FromFolder]

where:

  • Group is the user group name or All for all user groups. If you specify ALL for the user group, you must specify Pattern for the TemplateType.
  • TemplateType can be one of the following:
    Value Description

    LINK

    To publish links.

    REPORT

    To publish report templates.

    ALL

    To publish all template types.

  • FileName is the file name of the template (including the file extension) or All for all files.
  • FromFolder is the folder or folders containing the templates and template information, including the CategoryFile and GroupFile. FromFolder can include a complete or partial folder path in the format C:\...\FileName. If the templates and pattern allocation files are in the working folder, you don’t need to specify the drive or path. If the folder name includes spaces, enclose it in double quotation marks.

Syntax example

PUBLISH TEMPLATE All Report All "C:\Program files\Longview\Servers\Reports"

Caution: Always use PUBLISH TEMPLATE ALL PATTERN ALL and PUBLISH TEMPLATE ALL LINK ALL when synching templates to ensure all patterns and links are migrated properly.

Syntax (with an ASCII file)

PUBLISH TEMPLATE @GroupFile @CategoryFile

where:

  • GroupFile is an existing ASCII file containing template user group assignments, with the following syntax:

    Group{TemplateType{FileName

  • CategoryFile is the file name of an existing ASCII file containing template category assignments, with the following syntax:

    FileName{Category

The group file and category file may have been created using the Get TEMPLATE or Get TEMPLATEINFO command.

Syntax example

PUBLISH TEMPLATE @template.idx

See also

For an optimal Community experience, Please view on Desktop