Page 1 of 1

Re: How to make module CreateLinks open in new (non admin) page?

Posted: Thu Sep 06, 2007 8:14 am
by cyberman
secoif wrote: these links open in a ridiculous admin/moduleinterface.php?mact=BarcodeGenerator,,default,0&tim=awesome url,
A barcode generator, great - will we see it in forge :)?
Just the same way the Album module opens Albums in their own pages when you click on a {$album->link}.
My php skills are very limited but I think it's "only" a ready formated element of array
I guessed and tried changing the 'inline' parameter, but no effect.  No idea.
Have you made a look at the API docs? The next parameter should work.

http://www.cmsmadesimple.org/apidoc/CMS ... CreateLink

You can open new windows if you add target='_blank' as $addtext ;).

Re: How to make module CreateLinks open in new (non admin) page?

Posted: Wed Sep 12, 2007 12:06 pm
by alby
secoif wrote:
function doStuff($id, $returnid) {
        $href = $this->CreateFrontendLink($id,
                                'default',
                                $returnid,
                                'Go',
                                array('tim'=>'potentially_cool'),
                                '',
                                false,
                                false,
                                '',
                                  true,
                                '');

        echo $href;
}
Have you checked $id and $returnid?

Alby