Ken Pooley wrote:
>
> This may be really obvious but...why can't we make the formatting of text -
> ie :f (formatted) :h (html) or nothing- a record level designation instead
> of a scripted addition? By scripting it it locks all of the content
> contributors who work on a section into a single way of working unless I
> put in a kludge that checks their record (say in the print or type fields)
> and set a variable ya-da-ya-da...it seems like this would be better handled
> in the central midgard code....then fifteen different editors could just
> put in their choice of the three types and have the text output according
> to their silly whim
> is that reasonable?
Reasonable, yes, feasable, possibly. The problems is that the &(...);
bit
has no knowledge of what is being displayed (article content or whatever
else
I cared to put in a variable) so we'd need a way to store that relation
somewhere.
With parameters you can add this kind of information to an article
though, so
if a page is displaying an article that you've previously added a
parameter to:
$article->parameter('display', 'formatting', 'H');
then this bit of code would automate the formatting process:
$article = mgd_fetch_article(...);
if ($article->parameter('display', 'formatting')) {
$format = ":" . $article->parameter('display', 'formatting');
}
eval "?>&(article.content$format);<?";
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]