The entire MKDoc-Auth/lib/MKDoc/resources/templates/auth directory from MKDoc::Auth need adding to the /resources/templates/ 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(../../../../../bugs/unstable/css/public.ltr.css); @import url(../../../../../bugs/unstable/css/public.css); @import url(../../../../../bugs/unstable/css/colours.css); @import url(../../../../../bugs/unstable/css/admin.ltr.css); @import url(../../../../../bugs/unstable/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' );