Skip Navigation

Feature Requests

Apache::Filter compatability

Atom

Bouncing email newsletters

File listing box

Google Sitemaps

Groups Integration

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.

File listing box

The Main bug (File listing box appears when there are no files) has been fixed by back-porting the --exclude functionality from 1.8

We should implement one / both of these feature requests:

Hide files env var

It would be better if the files that are not to be displayed are set as an env var perhaps?

MKD__HIDE_FILES="favicon.ico, robots.txt, style.css"

Hide file tick box

Another, more flexible, way to solve this problem would be to simply have a tick box with each file compoment Hide file? — if it's ticked then the file doesn't appear on the page.

This would make adding images that are used by CSS etc better since at the moment the only way to do this is to attach files like this to a hidden page or simply have this files listed on a page somewhere…

Original Bug report

templates/fragments/menu_files/en.html is set up not to display some files:

<div
 class="files"
 xmlns:petal="http://purl.org/petal/1.0/"
 petal:condition="true: self/components_list --file"
>

 <h2>
   <a
     xml:lang="en"
     lang="en"
     dir="ltr"
     name="files"
     id="files"
   >
     Files
   </a>
 </h2>

 <div
   petal:define="File_Loop self/components_list --file;"
   petal:repeat="file File_Loop"
   petal:omit-tag=""
 >
   <p
     petal:attributes="class string:file-${file/extension}"
     class="file-file"
     petal:condition="true:  file/title;
                      false: file/name_is --style.css;
                      false: file/name_is --favicon.ico;
                      false: file/name_is --script.js;"
   >
     <a
       href="http://example.com/"
       rel="dc:hasPart"
       petal:content="file/title"
       petal:attributes="href file/uri"
     >
       File Title
     </a>
   </p>
 </div>

</div>

However the problem with this is that if there are only the named files attached to a page then an empty box is generated.

MKDoc-1.8 solution

This site is running MKDoc 1.8 and it doesn't have this bug… there is a file attached to this page: http://www.mkdoc.org.archived.website/bugs/stable/normal/file-listing-box/favicon.ico

This is because components can be excluded by name using the --exclude parameter in 1.8

Comments

Bruno Postle 2005-09-10 13:35:26

This bug appears to be fixed in 1.8, but in fact the file listing box doesn't appear anywhere. For instance, this document has an uploaded file, but no file-listing box appears:

http://www.mkdoc.org.archived.website/bugs/stable/resolved/file-uploads-with-dots-in-file/

The fix was real, but a Petal bug prevented it from actually working, see:

https://lists.webarch.co.uk/pipermail/petal/2005-September/001165.html

<< | Up | >>

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