Kai Wernicke wrote:
> I'm trying to find out what i'm doing wrong: When im Clicking the
> copy-button in asgard /asgard/framed/style/copy/STYLE_ID gets called
> but that's all. No copy. Is it just broken or not finished? And if so,
> is there a way to copy a whole style without reediting it in asgard??
Asgard is still in Beta version, and thus is not yet finished (any
volunteers ? hint, hint ! ;).
There is a way to do it though, create a page (in the sitegroup 0, ie. a
subpage of Asgard_Root) that contains that code:
<?
$source = IDS;
$target = IDT;
if(!($id = mgd_copy_style($source))) {
echo "Error on copy: " . mgd_errstr() . "<br>";
exit(0);
}
if($target) {
if(!($id = mgd_move_style($id, $target))) {
echo "Error on move: " . mgd_errstr() . "<br>";
exit(0);
}
}
echo "Style copied with success<br>";
?>
Replace IDS with the numeric id of the style you want to copy, and IDT
with the numeric id of the style under which you want to copy it, or 0
if you want the copy to be at the root.
Then access this page in your browser.
Hope this helps.
>
> Thanks
>
>
--
Best Regards,
David Guerizec Open Source Developer
Aurora R&D [EMAIL PROTECTED]
Midgard core developer http://www.midgard-project.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]