[WM] [Q] get_metadata
Chris
ckolumbus.gmx.de
Wed Oct 31 07:41:01 GMT 2001
Dear Listmembers,
I hope that I'm not too annoying, but as I like the power of WebMake it's fun
for me to play around with it. This result in man questions, as you might
notice :-).
Now I do have the problem to get information on the Metadata "up". Trying to
get this by
foreach my $pg (content_matching ("*.txt")) {
my $pg2 = get_content_object($pg);
my $myup = $pg2->get_metadata("up");
}
does not woerk. After reading the library source code of SiteMap.pm I tried
foreach my $pg (content_matching ("*.txt")) {
my $pg2 = get_content_object($pg);
my $myup = $pg2->{main}->quiet_curly_meta_subst
($HTML::WebMake::Main::SUBST_META,
$pg2->{name}.".up");
}
which works.
It seems to be a problem of "up" being not a builtin metadata object defined
in Metadata.pm.
Is this behaviour intedend or not?
Regards,
Chris
More information about the Webmake-talk
mailing list