Skip Navigation

Sign up

If you sign up for an account on this web site you can customise elements of this site and subscribe to an email newsletter.

If you have an account on this web site you may login.

If you have an account on this site but have forgotten your user name and / or your password then you can request an account reminder email.

MKDoc::Auth Templates

The entire <code>MKDoc-Auth/lib/MKDoc/resources/templates/auth</code> directory from MKDoc::Auth need adding to the <code>/resources/templates/</code> directory and then the templates need customising to match the others, however several methods that the standard templates use are not supported at the moment, these are:

self/root

Adding this code to the <head> of the /auth/ templates causes an error:

<link
  rel="shortcut icon"
  href="../../../css/favicon.ico"
  type="image/x-icon"
  petal:attributes="href string:${self/root/uri}favicon.ico"
  petal:condition="true: self/root/get --favicon.ico;"
/>
[PETAL ERROR] Cannot find value for 'get' at '/self/root': get cannot be retrieved

self/cgi/path_info_eq

This code causes an error:

    <link
      rel="top"
      href="/"
      hreflang="en"
      title="Root Document"
      type="text/html"
      petal:attributes="href     self/root/uri;
hreflang self/root/lang;
title    self/root/title;"
      petal:condition="false: self/cgi/path_info_eq '/';"
    />
[PETAL ERROR] Cannot find value for 'path_info_eq' at '/self/cgi': path_info_eq cannot be retrieved

self/parent

This code causes an error:

    <link
      rel="parent"
      href="#"
      hreflang="en"
      title="Document Parent Title"
      type="text/html"
      petal:attributes="href     self/parent/uri;
hreflang self/parent/lang;
title    self/parent/title"
    />
[PETAL ERROR] Cannot find value for 'uri' at '/self/parent': uri cannot be retrieved

/macros/style/#content

The style sheet macro fails:

<style
  media="screen"
  type="text/css"
  title="Screen style sheet"
  metal:use-macro="/macros/style/#content"
>
  @import url(../../../css/public.ltr.css);
  @import url(../../../css/public.css);
  @import url(../../../css/colours.css);
  @import url(../../../css/admin.ltr.css);
  @import url(../../../css/admin.css);
</style>
Error: Can't use an undefined value as an ARRAY reference at (eval 980) line 94.


Petal object dump:
==================
$VAR1 = bless( {
                 'lang' => 'en',
                 'file' => 'macros/style/en.html#content'
               }, 'Petal' );

/macros/logo/#content

The logo fragment doesn't work:

      <div
        metal:use-macro="/macros/logo/#content"
        class="logo"
      >
        <!--? Mockup content - this will be replaced by the result of the macro ?-->
        <p>
<a href="http://www.example.com/" hreflang="en"><img
  alt="Home Page" src="../../../css/logo.png"
  border="0" /></a>
        </p>
      </div>
[PETAL ERROR] Cannot find value for 'path_info_eq' at '/self/cgi': path_info_eq cannot be retrieved

/macros/menu/#content

The menu fragment doesn't work:

      <div
        metal:use-macro="/macros/menu/#content"
        class="menu"
      >
        <!--? Mockup content - this will be replaced by the result of the macro ?-->
        <p>
<a accesskey="1" lang="en" xml:lang="en" hreflang="en" dir="ltr"
  href="http://www.example.com/" title="The home page [Accesskey 1 ].">Home</a>
<bdo dir="ltr">|</bdo>
<a accesskey="3" lang="en" xml:lang="en" hreflang="en" dir="ltr"
  href="http://www.example.com/.sitemap.html"
  title="The sitemap [Accesskey 3 ].">Sitemap</a>
        </p>
      </div>
[PETAL ERROR] Cannot find value for 'path_info_eq' at '/self/cgi': path_info_eq cannot be retrieved

/sitemap/macros/breadcrumb/#content

The breadcrumb trail fragment doesn't work:

      <div
        metal:use-macro="/sitemap/macros/breadcrumb/#content"
        class="breadcrumb"
      >
        <!--? Mockup content ?-->
        <p>
<span lang="en" xml:lang="en">You are here</span>
<bdo dir="ltr">:</bdo>
<a lang="en" href="http://www.example.com/" xml:lang="en" hreflang="en">Foo</a>
<bdo dir="ltr">/</bdo>
<a lang="en" href="http://www.example.com/bar/" xml:lang="en" hreflang="en">Bar</a>
<bdo dir="ltr">/</bdo>
<a lang="en" href="http://www.example.com/bar/baz/" xml:lang="en" hreflang="en">Baz</a>
<bdo dir="ltr">/</bdo>
<strong lang="en" xml:lang="en">Signup</strong>
        </p>
      </div>
[PETAL ERROR] Can't use an undefined value as an ARRAY reference at (eval 934) line 45.
Error: Can't use an undefined value as an ARRAY reference at (eval 934) line 45.


Petal object dump:
==================
$VAR1 = bless( {
                 'lang' => 'en',
                 'file' => 'macros/breadcrumb-ancestors/en.html#content'
               }, 'Petal' );

Up

This document was last modified by Chris Croome on 2005-04-07 02:28:28
MKDoc Ltd., 31 Psalter Lane, Sheffield, S11 8YL, UK.
Copyright © 2001-2005 MKDoc Ltd.