Heres a script I use for this porpose, placed on a single page.
<?php
function sideen() { ?>
<p>
<form method="GET" action="<?php echo "$PHP_SELF";?>">
What is the article nr. of the article you whant to move?
<input type="text" name="artnum" value=""><br>
To what topicnr. do you want to move teh article? <input type="text"
name="tnr" value="">
<INPUT TYPE=HIDDEN NAME="s" VALUE="1">
<INPUT <input type="submit" value="Flytt">
</form>
<?php
}

function move_art() {
global $artnum;
global $tnr;

$article = mgd_get_article($artnum);
if ($article->topic == $tnr) {
echo "Artikkelen er allerede flyttet";
} else {
mgd_move_article($artnum, $tnr);
echo "Article $artnum has been moved to topic $tnr.<br>";
}
}

if ($s == 1 ){
echo "moveart";
move_art();
} else {
sideen();
} ?>


> -----Original Message-----
> From: Ingo Herz [mailto:[EMAIL PROTECTED]]
> Sent: 9. mai 2001 20:43
> To: [EMAIL PROTECTED]
> Subject: [midgard-user] Asgard: copy+move
>
>
> Hi,
>
> The customer of our first midgard project (they are using asgard to
> customize the site) today had a very bad idea: "How do I move
> or copy an
> article in the tree?
> We want to move an article to another topic..." I tried this
> some months
> before -
> no way, had a look at the list - some asked, but they got no
> answer on how
> to get
> it running.
>
> After looking in "Asgard Root/article/page-init" it seems, that this
> functions are only half-implemented and so they can't work.
> Would there be
> a way to get these things running? I would have a look
> myself, but without any
> help it is hard to navigate through all these elements, snippets etc.
>
> Have a nice evening,
> Ingo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to