This tag is added by the "ifarchive.pl" plugin and it works when rebuilding statically.
Do plugins have to be rewritten as PHP plugins so they can work dynamically?
Here's the code of the plugin:
CODE
package LummoxJR::ifarchive;
use MT::Template::Context;
MT::Template::Context->add_conditional_tag(IfArchive => \&ifarchive);
MT::Template::Context->add_conditional_tag(IfNotArchive => sub{!ifarchive(@_)});
sub ifarchive {
my ($ctx,$args)=@_;
return 0 unless $ctx->{current_archive_type};
return 1 unless $args->{archive_type};
my @types=split /\s*,\s*/,$args->{archive_type};
foreach my $at (@types) {return 1 if $at eq $ctx->{current_archive_type};}
0;
}
1;
use MT::Template::Context;
MT::Template::Context->add_conditional_tag(IfArchive => \&ifarchive);
MT::Template::Context->add_conditional_tag(IfNotArchive => sub{!ifarchive(@_)});
sub ifarchive {
my ($ctx,$args)=@_;
return 0 unless $ctx->{current_archive_type};
return 1 unless $args->{archive_type};
my @types=split /\s*,\s*/,$args->{archive_type};
foreach my $at (@types) {return 1 if $at eq $ctx->{current_archive_type};}
0;
}
1;