$templates


Template Properties

$template->label

Introduced in Version 2.0

Description

Optional short text label to describe Template.

Here we get and echo a template's label. We then change the label by setting it to something else and saving.

$t = $templates->get("skyscraper");
echo $t->label; //outputs e.g. Skyscraper

$t->label = "Building";
$t->save();
echo $t->label; //outputs Building

Related

Post Comment