philippagreen Posted March 14, 2016 Share Posted March 14, 2016 How does one link to a PDF link in a product Description or in a Document. There just doesn't seem to be a button to click which allows one to link? I'm using Cubecart 6.0.10 Quote Link to comment Share on other sites More sharing options...
keat Posted March 14, 2016 Share Posted March 14, 2016 I do this https://www.beal.org.uk/order-form.html Basically, in the product description I put something along the lines 'Download PDF Here', then turn it in to a hyperlink using the little globe and chain icon in the editor. I suppose you could use pdf icon inside the text and hyperlink this also using img src Quote Link to comment Share on other sites More sharing options...
philippagreen Posted March 14, 2016 Author Share Posted March 14, 2016 This is how I'd normally do it, but when I click on the globe it'll not allow me to browse to select a file only to add a URL link Quote Link to comment Share on other sites More sharing options...
keat Posted March 14, 2016 Share Posted March 14, 2016 I knew the URL of the file, so just typed it in manually. Quote Link to comment Share on other sites More sharing options...
philippagreen Posted March 14, 2016 Author Share Posted March 14, 2016 I know where the pdf file is but I can't manually link it? Oooooo it's driving me potty, I can't ever remember having problems in the past? Quote Link to comment Share on other sites More sharing options...
ayz1 Posted March 14, 2016 Share Posted March 14, 2016 In the editor click on the Source button and add the link code e.g. <a href="http://www.mysite.com/docs/product.pdf">Link Text</a> Quote Link to comment Share on other sites More sharing options...
bsmither Posted March 14, 2016 Share Posted March 14, 2016 Please make this experiment. In the file /includes/ckeditor/config.js: Find near line 21: config.filebrowserImageBrowseUrl = 'admin.php?_g=filemanager&mode=fck'; On a new blank line after that, add: config.filebrowserLinkBrowseUrl = 'admin.php?_g=filemanager&mode=fck_digital'; Save the file. In the file /admin/sources/filemanager.index.inc.php: Find near line 28: case 'digital': $mode = FileManager::FM_FILETYPE_DL; break; On a new blank line ABOVE that, add: case 'fck_digital': $GLOBALS['main']->hideNavigation(true); $select_button = true; Save the file. Your browser may have cached a copy of config.js, so force your browser to reload all the page's resources (typically CTRL-F5). When using the editor, click the Insert Link tool button (globe and chain links). Below the URL field, there will be a Browse Server button. (This is new from the above edits.) Click that button. A popup window will appear named Download FileManager. For each digital file listed, off to the far right will be a small green circle with a white plus in it. When you click on that green circle icon, the path to the digital file will populate the URL field of the editor's Link dialog with the file's path. Click the OK button to embed the link in the document. Save the Document. On the storefront, test the link in the product's description. Quote Link to comment Share on other sites More sharing options...
keat Posted March 14, 2016 Share Posted March 14, 2016 actually, I had issues with the editor on our V3 when using chrome, it wouldn't add links, it would always add some sort of java code. I always had to use IE for editing links. I now rarely use chrome anyway, so not sure i've tried this on our V6 site... just a thought, did you try a different browser. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 5, 2016 Share Posted April 5, 2016 In Version 6.0.11 Thanks bsmither - Works for me! In the file /includes/ckeditor/config.js: Around line: 8 Add after config.filebrowserBrowseUrl = document.location.pathname+'?_g=filemanager&mode=fck'; config.filebrowserBrowseUrl = document.location.pathname+'?_g=filemanager&mode=fck_digital'; Then as above In the file /admin/sources/filemanager.index.inc.php: Find near line 28: case 'digital': $mode = FileManager::FM_FILETYPE_DL; break; On a new blank line ABOVE that, add: case 'fck_digital': $GLOBALS['main']->hideNavigation(true); $select_button = true; Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 17, 2016 Share Posted October 17, 2016 There doesn't seem to be any difference in the ckeditor files from 6.0.11 to 6.0.12. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.