[MKDoc-dev] Re: patch to distinguish between internal and
external links
Bruno Postle
bruno at mkdoc.com
Thu Jul 21 15:45:03 BST 2005
On Thu 21-Jul-2005 at 15:19 +0100, Bruno Postle wrote:
>
> These kinds of global configuration options are handled by
> MKDoc::Config. Basically you create a method that returns a value
> from the environment or a sensible default:
>
> package MKDoc::Config;
> ...
> sub EXTERNAL_LINKS_OPEN_IN_NEW_WINDOW
> {
> my $class = shift;
> return get_env ('MKD__EXTERNAL_LINKS_OPEN_IN_NEW_WINDOW') || 0;
> }
Of course you reset the default value in
$SITE_DIR/httpd/httpd-env.conf like so:
SetEnv MKD__EXTERNAL_LINKS_OPEN_IN_NEW_WINDOW 1
This file is templated in MKDoc::Site::ConfigWriter::Httpd_Conf. So
I would put it in the defaults, but commented out like so:
# Uncomment if you want external links in popup windows
# SetEnv MKD__EXTERNAL_LINKS_OPEN_IN_NEW_WINDOW 1
--
Bruno
More information about the MKDoc-dev
mailing list