Re: Output file tag

Kurt Sermeus <[email protected]>
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
Hi Thomas,

The equivalent of the __file__ macro in  WML is the variable 
WML_SRC_BASENAME.
To make a link from the EN page to the DE page, use this line in your 
template, in the EN section:

<a href=<get-var WML_SRC_BASENAME>.de.html> Deutsch </a>

There are however specific WML tags for multi-language support. Have a 
look at the WML - DOC page for  wml::std::lang (see includes).

Regards,
Kurt



Thomas Krennwallner wrote:

>Hi!
>
>I'm seeking the output file equivalent to <__file__>. I want to make a
>template which links to the current page but in another language. So if
>I'm in foo.en.html I want to create a link to foo.de.html in it. How do
>I accomplish this?
>
>So long
>Thomas
>


_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.