2011-03-22, 04:26:24
Its so annoying when you can't link to pages inside your site and I've seen a request for it.
So I've put the files required into the zip attached.
It should work! I've tested but there maybe be some minor bugs.
All instructions included and here:
1) Replace the link.js included with the current one. This is located
in "ROOT/admin/template/js/ckeditor/plugins/link/dialogs/"
2) in the edit.php file located in "ROOT/admin/" insert the following code
somewhere in the document OR replace the edit file with the one included.
////
<script>
var internalLinks = [
<?
$itAm = count($parents);
foreach($parents as $key => $file){
if (isFile($file, $path, 'xml')) {
$data = getXML($path .$file);
echo "['".$data->title."','".find_url($data->url,$data->parent)."']";
if($key!=$itAm-1)echo ",";
}
}
?>
];
</script>
////
Enjoy
So I've put the files required into the zip attached.
It should work! I've tested but there maybe be some minor bugs.
All instructions included and here:
1) Replace the link.js included with the current one. This is located
in "ROOT/admin/template/js/ckeditor/plugins/link/dialogs/"
2) in the edit.php file located in "ROOT/admin/" insert the following code
somewhere in the document OR replace the edit file with the one included.
////
<script>
var internalLinks = [
<?
$itAm = count($parents);
foreach($parents as $key => $file){
if (isFile($file, $path, 'xml')) {
$data = getXML($path .$file);
echo "['".$data->title."','".find_url($data->url,$data->parent)."']";
if($key!=$itAm-1)echo ",";
}
}
?>
];
</script>
////
Enjoy