Linking to internal pages - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Linking to internal pages (/showthread.php?tid=1443) |
Linking to internal pages - ElliotLings - 2011-03-22 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 Linking to internal pages - ccagle8 - 2011-03-22 This is already a feature in 3.0. Does this build upon that, or is this for the 2.03 version of GetSimple? Linking to internal pages - Joshas - 2011-03-22 Have you tried latest Experimental Beta version (http://get-simple.info/beta)? It has implemented functionality in CKEditor to link to local pages. Linking to internal pages - ElliotLings - 2011-03-22 Thats for Version 2.03.1. Didn't realize 3.0 was out! If anyone wants that for 2.03 then there it is Linking to internal pages - ccagle8 - 2011-03-22 3.0 isn't out yet - but it will be in a week or so Linking to internal pages - ElliotLings - 2011-03-22 Oh Good luck I'm sure it will be good! Linking to internal pages - Oleg06 - 2011-03-22 maybe after the release of version 3.0, you can relax a bit? Linking to internal pages - ccagle8 - 2011-03-22 Oleg06 Wrote:maybe after the release of version 3.0, you can relax a bit?I think i need it |