Tarjei Huse wrote:
>
> Hi.
> Thanks for pointing me in the right direction (=RTFM). I'm not sure what you
> guys like when it comes to the end results, but I'm posting the on the list
> so others comming later can use the code. Comments are welcome.
>
> What this function does is to take a topic id and return to variables, var
> and lvar, where $lvar is the parent topics to the topic. The code is used to
> tell the user where he or she is in the topic structure, and I'm using a
> modified version to make links independant of where in the topic tree the
> article is.
>
> For many of you this might seem trivial, but I've spent some time on finding
> this out. It might be an idea to put the snippet (or something simmilar)
> into the midgard documentation.
As far as I can understand the following code it doesn't solve problem
#1 you've mentioned before and which is described in your Subject line.
For copying (or moving them) in Midgard 1.4 you should use
mgd_copy_article()/mgd_move_article() which is documented in Manual.
<[strip-code]>
> > Afte a month in development we're soon finished with our new
> > midgard site.
> > There's a few things left (SG for one). I got two questions:
> > 1. Does anyone have some code for the admin site so that I
> > can copy/move an
> > article to another topic? As a result of a missunderstanding
> > I will need to
> > move ca 100 articles around. :-(
<[strip-code]>
--
Alexander Bokovoy
Minsk Linux Users Group | http://www.minsk-lug.net/
The Midgard Project | http://www.midgard-project.org/
IPLabs Linux Team | http://linux.iplabs.ru/
Necessity hath no law.
-- Oliver Cromwell
--
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]