thnx for very faaaaaaaaast answer!
> Yes. The problem with code above is that you are trying to use it to
> generate links to articles but it generates links for topics. For
> articles you need something like this but with mgd_list_topic_articles
()
Uh! I don't want to sort articles or topics. I want to show where have
you been before you opened this page You are reading.
I tried with this:
<?
function twalk($id) {
if ($id && !mgd_is_in_topic_tree(7, $id)) $id = 0;
if (!$id || !($t = mgd_get_topic($id))) return;
twalk($t->up);
printf(' / <a href="%d.html">%s</a> ', $t->id, htmlentities($t-
>name));
} ?>
<?
function ttwalk($id) {
if ($id && !mgd_is_in_topic_tree(7, $id)) $id = 0;
if (!$tid || !($t = mgd_get_topic($tid))) return;
ttwalk($t->up);
printf('/ <a href="/topic/%d.html">%s</a> ', $t->id,
htmlentities($t->name));
}
?>
<?
if ($article) {ttwalk($topic);}
else
if ($topic) { twalk($topic->up) ; ?> / &(topic.name); <? } ?>
Try if you want.
> The "problem" with static page is solveable easily. Remeber: page
marked
> as "active" automagically converts path after its name to parameters
in
But when my root page is active I'm miising all images :(((((
Piotras
--
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]