Well, thank you. Besides, it doesn't seem to work. What i meant was 
recursively copying a style. I'm just creating a page for a customer and 
i would like to build a production-server/test-server environment where 
all articles show up on the test-server but only the approved articles 
show on the production-server.
Additionaly i think i will have to build a "lighter" frontend for the 
editors where they can edit articles but cannot access other functions 
of asgard...

Any ideas?

Thanks, Kai!

David Guerizec wrote:

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



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

Reply via email to