Inserting pdfs and email addresses into the body of an article

7 posts by 3 authors in: Forums > CMS Builder
Last Post: August 25, 2008   (RSS)

By cmsweb - August 25, 2008

I'm working on my first CMSB install and so far so good. However, I've come across a couple of tasks that I can't seem to get working ... not sure if they are do-able or not.

1. I've got pdf uploads working in the same way as I've got images uploading in to their own folders. What I really want to do is allow the site administrator to 'insert' a pdf into the copy of the article via the wysiwyg article. When I select some text and click the link icon, the upload box appears but when I try to save the pdf I get the error message "File 'zyz.pdf' isn't allowed (valid file extensions: gif,jpg,png,wmv,mov,swf)." In that particular section I have 2 uploads fields created - 1 called Images with gif, jpg, png, pdf, doc extensions and 1 called Docs with pdf, doc extensions. Do I need a 3rd upload field to handle the wysiwyg link uploads? Or is there another way to get this to happen?

2. We'd like to be able to have the site administrator easily insert an email link in to the body of the article without having to type mailto: infront of the email address in the insert link pop-up box. Is that possbile?

Thanks.

Re: [cmsweb] Inserting pdfs and email addresses into the body of an article

By zip222 - August 25, 2008

in regards to your first question:
You need to authorize the WYSIWYG field to allow PDF files to be uploaded. This can be done by clicking on the 'modify' button in the Section Editor menu.
I am not sure how to handle the second issue.

Re: [jdancisin] Inserting pdfs and email addresses into the body of an article

By cmsweb - August 25, 2008

Ugh - didn't even see that. Thanks - did the trick.

Hoping someone has an answer for the email url creation - would certainly make things easier for the end users.

Re: [Dave] Inserting pdfs and email addresses into the body of an article

By cmsweb - August 25, 2008

Hi Dave,

That kinda worked. When I clicked Insert, I received a pop-up window that said something to the effect of 'This looks like an email address. Do you want to have mailto: added in front?'. I clicked yes, saved the update and checked the article. The link is there but it reads as http://mce_host/test@test.com. Do I need to fix a setting somewhere?

thx.

Re: [cmsweb] Inserting pdfs and email addresses into the body of an article

By Dave - August 25, 2008

Hmm, yes I can reproduce that on IE (not in Mozilla). It looks like a bug in TinyMCE. That's too bad because it looks like that would do almost exactly what you need.

We don't make the wysiwyg, but we do upgrade it pretty frequently to keep pace with their releases and bug fixes. Hopefully they'll fix it soon. You can see their latest releases here: http://tinymce.moxiecode.com/download.php

And an example page here:
http://tinymce.moxiecode.com/example_full.php?example=true

The only other option would be to get some custom programming done by them (or us) to adjust how it works.

I see a number of fixes in their latest release here: http://tinymce.moxiecode.com/tinymce/changelog.txt But not this one yet unfortunately. I'll post back here if I can think of any other workarounds.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Inserting pdfs and email addresses into the body of an article

By cmsweb - August 25, 2008

Looks like it does exactly what we're looking for in their full featured example. I think we can live with it as is - just a bit of end-user training should do the trick.