On  4 Nov, [EMAIL PROTECTED] wrote:
> In many applications it would be very useful
> to have an article appear under more than one
> topic.  Any way to implement such a link in 
> current or planned versions of Midgard?  

I think this would be quite difficult to implement with
the way Midgard currently works with articles.

However, there is a workaround for this we've used in
some applications (for example, the Midgard Web site).

We've defined a special article type 'link', which is
identified with PHP from the contents of its extra1
field. When listing for topics, these special articles
appear normal, but just function as links to another
article in some other topic, linked by the URL field.

Something like this:
<p>
<?php   if ($a = mgd_list_topic_articles($topic->id, 'reverse score', 0))
          while ($a->fetch()) if ($a->extra1 == 'link'): ?>
<(bullet)> <a href="&(a.url);">&(a.title);</a><br />
<?php     else: ?>
<(bullet)> <a href="/doc/art/&(a.id);.html">&(a.title);</a><br />
<?php     endif; ?>
</p>

> Paul

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
               http://www.iki.fi/Henri.Bergius


--
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]

Reply via email to