ok,

I've uploaded the annontations from the old manual. Here are some comments:

1. The User Defined Filter/Formater function (UDF) by David Guerizec
Do you have some writeup on this function David? Also, I added it to funcref for
now. It should probably be moved quite soon, but I didn't whant to loose it.

2. There should be a formatters page in the funcref.

3. Emile: This one needs your caring eyes,
http://www.midgard-project.org/manual/en/function.auth-midgard.php
I think I removed too much or not enough ;(

4. I guess this should _realy_ be updated in the manual :=)
Doesn't a snippet also include a field 'doc', as mentioned in the corresponding
manual chapter?
(I've added a annotation that says a snippet contains a doc field.

5. Ut's late, where should thisone go:
An unset bit is a bit set to 0 (or "" in PHP), not to -1.
Here is how the code should be (unless we want to publicize all fields):
<?php
 $id       = 13;
 $address  = 0;
 $phone    = 0;
 $homepage = 1;
 $email    = 0;
 $extra    = 0;

 mgd_update_public( $id, $address, $phone, $homepage, $email, $extra );
                   ?>

6. On the editors note on this one: What happens if the page is active and
serves articles?
A simple way of serving attachments is putting the following code in a special 
subpage. Then, when you need to serve the attachment (for instance an imagefile
) you point to the subpage (must be active) and the attachment id for instance:
 src="<root>/img/att.id" 

Remember that you cannot have anything sendt to the browser before the image (o
n that request). That's very important. I'f you are having problems, make sure 
that midgard does not send whitespace or anything else before the image. 

Editors note: 

Attachments to pages will be served automatically by mod_midgard when requested
, no php coding is needed. If a page '/blobs/' has an attachment 'logo.gif' the
n this attachment will be served if a request for /blobs/logo.gif is made. 

<? if ($argc == 1) { mgd_serve_attachment($argv[0]); exit; } ?>

7. Ok, I left out a few annotations. If someone feels thait comment is missing,
tell me.

Tarjei

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to