Just an idea, not tried.

$real = mgd_create_article( $up, $topic1, ..., $type1 );
$link = mgd_create_article( $real, $topic2, ..., $type2 );

In $link->up you have the article you want to link, isn't it?
Now:

$goodlink = mgd_get_article($link->up);

But a link can be broken, mgd_delete_article($real),
and with MySQL deleted article id can be reused linking to another one.

Only transactions can solve the problem.


Jean-Pierre


[EMAIL PROTECTED] wrote:

> On Tue, 9 Nov 1999 [EMAIL PROTECTED] wrote:
>
> > This workaround would be ok for a restricted set of
> > cases, but in a lot of applications you really would
> > need to have something equivalent to a full symbolic
> > link.  Otherwise you would need to copy an article
> > to a number of topic locations, which is certainly
> > undesirable from the viewpoint of document maintenance,
> > or alternatively have some more complex referencing
> > methods outside of the built-in Midgard utilities.
>
> One solution could be to create a table (in another database)
> that holds (topic, article) tuples to register articles
> 'softlinked' to a given topic. The downside is that the
> usual filtering and sorting won't apply to these links.
>
> Bye,
> 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]

Reply via email to