Hello,
I am (mis)using the mgd_list_reply_articles function to split long articles (+10 A4
pages, I do not want to offer a pdf download right away).
What I now want to implement is a "printerfriendly version" which collects the article
and all replies and puts them out in one separate page.
Two problems:
1. The articles and replies are structured as follows:
Article
|_____>Re: Article
|_______>Re: Re: Article
in my printerfriendly page I got:
<?php
if ($article) {
$replies = mgd_list_reply_articles($article->id);
if ($replies) {
while ($replies->fetch()) {
// Put an anchor with reply article's name for linking
echo "<a name=\"$replies->name\"></a>\n";
// Show the reply article's title as H2
echo "<h2>$replies->title</h2>\n";
// Show the actual content
echo $replies->content;
}
}
}
?>
However this will only show the first reply....any ideas how to get the other replies?
2. If somebody tries to print from for example the third reply, the code will of
course
only offer him this actual page+one reply (if available). I therefore need to point up
to
the first article and fetch all the replies. Any ideas on how to achieve this??
If the answer should be "Use MidCom", the next question would be: How easy is it to
convert a Midgard site with around 1800 articles to MidCom? ;-)
Thanks
Andreas
Andreas Alvarez
Deutsche Gesellschaft fuer Auswaertige Politik e.V.
Koordinator weltpolitik.net
http://www.weltpolitik.net
Tel.: +49 30 254231-43
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]