Avatar of Leevi Graham

LG Template Info v1.0.0 Display template information in your ExpressionEngine templates

Download LG Template Info v1.0.0 Table of contents

Features

LG Template Info is a simple plugin that displays basic information about the primary template being rendered.

Template information available in this ExpressionEngine plugin includes:

  • template id
  • template name
  • template group id
  • template group name

Requirements

LG Template Info is an ExpressionEngine plugin tested ExpressionEngine 1.6.0 or greater.

Installation

The LG Template Info plugin contains a single plugin file. To install the extension follow the instructions below:

  1. Download the latest version of the extension
  2. Extract the .zip file to your desktop
  3. Copy the plugins/pi.lg_template_info.php directory to your /system/plugins directory

Activation

This plugin has no special activation requirements.

Usage

LG Template Info has one main tag {exp:lg_template_info}. This tag requires one of four parameters: see Tag Reference below.

Just add one or all of the following tags to your template:

  • {exp:lg_template_info attribute='template_id'}
  • {exp:lg_template_info attribute='template_name'}
  • {exp:lg_template_info attribute='template_group_id'}
  • {exp:lg_template_info attribute='template_group_name'}

Tag Reference

LG Template Info

{exp:lgtemplate_info} has the following parameter:

  1. attribute=
attribute_id= [required]
template_info="template_id"

The attribute param accepts one of the four following options which are self explanitory:

  • template_id
  • template_name
  • template_group_id
  • template_group_name

Change Log

1.0.0

  • Initial Release

License

Creative Commons License LG Template Info is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.