Jump to content

[Resolved] Linking to PDF Files


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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;

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...