This document contains code snippets and configuration for different Movable Type modules and applications. It includes code for entries listings, entry forms, settings forms, and styling. The snippets demonstrate how to build components like tables, fields, and forms using Movable Type APIs and templating.
20. sub foo {
my ($cb, $app, $param, $tmpl) = @_;
...
$innerHTML =~ s/(,s)$//;
my $pointer_field = $tmpl->getElementById('ip');
my $label = '<__trans_section component="commentrating"><__trans
phrase="Rating"></__trans_section>';
my $hint = '<__trans_section component="commentrating"><__trans
phrase="It is the value that evaluated a entry with five phases."></
__trans_section>';
my $nodeset = $tmpl->createElement('app:setting', { id => 'rating', label =>
$label, hint => $hint, show_hint => 0 });
$nodeset->innerHTML($innerHTML);