Crate a link to an file attached to the current page so that users can download files such as a PDF or binary image.
Use the Knowledge Base technology to access files attached to a page. This also enforces the access rights manager which will protect attached files from unauthorized access.
The paragraphs below present one or more prototypes of how to link MoinMoin attachments within DocBook page.
In this prototype the reference to the attached file is hard
coded using the MoinMoin page name followed by the
MoinMoin action to address a an attached file
?action=AttachFile&do=get&target=test.pdf.
The full comand is:
<ulink url="./pageName?action=AttachFile&do=get&target=test.pdf">
![]() | Warning The & must be expanded to internet save encoding of
|
One design alternative is to enhance the ULINK tag
so that SQI XSL transformations will build the MoinMoin action. The
type attribute within ulink exists
exactly for this purpose.
Extension Markup: When the type="attachment" parameter is present
in the ulink tag, the url parameter is
pointing to an attached file. The markup producing the same
results as the prototype would be:
<ulink url="test.pdf" type=″attachment″ >
![]() | Note The processing expectation for the |
The SQI DocBook system assembles top level documents such as books from individual Knowledge Base Web pages. In this process model files associated with a page will be attached to that page. This references to external files are to attachments on that page.
This process model - of local files - is superior to the common practice of external files residing on a common location.

![[Warning]](/wiki/docbook/images/warning.png)
![[Note]](/wiki/docbook/images/note.png)