I have been looking at this too, it seems pretty straight forward...though
this explanation helps. Is there a way of making it conditional though? I
thought of using the type flag for that but would that add too much server
overhead? ( like if &topic=2 then :h else nothing)
Also has anybody dealt much with putting images into the body of an
article? I have mucked about with it some but don't feel like I have much
control over placement...is there a better way or a trick that might help?
kp
-----Original Message-----
From: Emiliano [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, January 26, 2000 2:50 AM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] simple ?
On Sun, 23 Jan 2000 [EMAIL PROTECTED] wrote:
> Well... it's actually &(article.content:h); and &(article.content); (note
> the ampersands, not dollar signs)...
>
> The added :h tells midgard to display the variable with some formatting
> done to it, instead of directly. I think that :h will escape it, so that
> it can will be displayed in HTML... that is, if you give it "foo<a href
> ='d'>a</a>", it will do the proper escapes to display that string in
HTML,
> instead of just dumping it into the output, which would give you "foo
a",
> where a is a link.
The full list of modifiers:
:h add value as html. This will escape " to ", & to &, < to <,
> to >. Everything between [< and >] is added verbatim with the
[< and >] dropped.
:p add value as php code. This will escape " to ", & to &, < to
<,
> to >.
:H add value as html. Everything is included verbatim.
:f add value as formatted text. The plain text input is formatted as HTML
on the fly. Lines starting with '-' will be transformed to unnumbered
lists, <p> will be added between paragraphs delimited by an empty line.
:F add value as formatted text. The plain text input is formatted as HTML
on the fly. Lines starting with '-' will be transformed to unnumbered
lists, <p> will be added between paragraphs delimited by an empty line.
Additionally, lines after an empty line with less than 10 words are
formatted as <h2>
:u add the value urlencoded, replacing non-safe URI characters with their
%code equivalents.
Henri, did I get everything right? If so I'll move this to the manual.
emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]