insert link to page in custom block

Permalink
Hi, I'm building a custom block. I'd like to show something like the 'insert link to page' dialog in the content block in my edit form. Does anyone have a code example, i would appreciate it...

 
shenn replied on at Permalink Reply
this should do it:
<?php
$psh  = Loader::helper('form/page_selector');
echo $psh->selectPage('targetCID', $targetCID);
?>
ronwiersma replied on at Permalink Reply
He Eelco,
Thanks, i allready managed to do by learning from a 'designer content' generated block.
shenn replied on at Permalink Reply
Hi Ron,

yea, that's a real handy package.. very useful to learn how custom blocks are build.