GetSimple Support Forum

Full Version: Linking to internal pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
This is already a feature in 3.0. Does this build upon that, or is this for the 2.03 version of GetSimple?
Have you tried latest Experimental Beta version (http://get-simple.info/beta)? It has implemented functionality in CKEditor to link to local pages.
Thats for Version 2.03.1. Didn't realize 3.0 was out!

If anyone wants that for 2.03 then there it is Smile
3.0 isn't out yet - but it will be in a week or so
Oh Tongue

Good luck Smile I'm sure it will be good!
maybe after the release of version 3.0, you can relax a bit? Smile
Oleg06 Wrote:maybe after the release of version 3.0, you can relax a bit? Smile
I think i need it Smile