Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linking to internal pages
#1
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 Smile
Reply


Messages In This Thread
Linking to internal pages - by ElliotLings - 2011-03-22, 04:26:24
Linking to internal pages - by ccagle8 - 2011-03-22, 04:46:56
Linking to internal pages - by Joshas - 2011-03-22, 04:47:34
Linking to internal pages - by ElliotLings - 2011-03-22, 04:58:24
Linking to internal pages - by ccagle8 - 2011-03-22, 05:34:35
Linking to internal pages - by ElliotLings - 2011-03-22, 05:36:40
Linking to internal pages - by Oleg06 - 2011-03-22, 06:36:54
Linking to internal pages - by ccagle8 - 2011-03-22, 06:48:24



Users browsing this thread: 1 Guest(s)