On Fri, Jan 11, 2002 at 03:14:40PM -0800, ___cliff rayman___ wrote:
> Jochen Topf wrote:
> > Thanks for the help, but this is only part of what I need. I don't want
> > to print the "real" URL, but a "translated" short version, like for
> >
> > /pub/papers/index.html
> >
> > I would print
> >
> > Home / Publication / Papers
> >
> > and this can be different for different languages. And the mapping from
> > 'pub' to 'Publication' should be in the /pub/index.html file, so it is easy
> > to keep up to date.
>
> well, if it is in the /pub/index.html file - you will have to read that file to
> get it. so, make a meta tag with the data you want:
>
> <DEFANGED_meta name="myShortName.en" content="Publication">
> <DEFANGED_meta name="myShortName.fr" content="Publicaci�n">
> <DEFANGED_meta name="myShortName.sp" content="Publication">
>
> then, read the file and extract the data, and do a translation from the
> URL to the data. i have not used Embperl object, but others on this
> list might have a better way to do this using that technology.
in each file have a subroutine similar to:
[! sub short_title { 'Publication' } !]
then you can extract the title with:
[- my $obj = Execute({object => 'papers.html'});
$title = $obj->short_title;
-]
--
- Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]