Sam wrote:
> 
> Does anyone have any idea why you can't change the type once an article is
> created?   I've tried tinkering with the admin page a bit, and added this
> <? if ($action) { ?><input type="text" name="type" value="&(type);" size="5"><?
> } else { ?><p>&(article.type);</p><? } ?>
> 
> and changed
> if ($modify && $id) mgd_update_article($id, $topic, $name, $title, $abstract, $c
> ontent, $author, $url, $calstart, $caldays, $icon, $view, $print, $extra1, $extr
> a2, $extra3, $type);
> in the code_init
> Does anyone know why this doesn't work?

I do :-). The function mgd_update_article does not affect the type in
any way (nor does it have such an argument).
Use
    mgd_update_article_type(int id, int type);

instead. This is well documented.


Frank

-- 
Dr Frank Boehme                      | Email: [EMAIL PROTECTED]
National University of Ireland, Cork | phone: +353-21-903163
Dept of Computer Science             |   fax: +353-21-903113
Cork, Ireland                        |

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