Seite 1 von 1

Internal link to .doc and .xls?

Verfasst: Mi 4. Feb 2004, 22:31
von mikamedia
Hi,

Does anybody know a solution to add links to Word/Excel documents from the HTML area? I can only link to PDF files at the moment.

It is no problem if all .doc and .xls files show up under the 'PDF' folder in spaw editor.

I could change it myself but I cannot find the file where I can add this.

Thanks a lot !

~ john

Verfasst: Do 5. Feb 2004, 12:42
von Cimme
hm, if I were you, i wouldn't use windows-sprecific Formats,

but you may handle it with a norml link with spaw.
don't change the file type, only type the link like:
http://yourdomain.tld/cms/uploads/pdf/example.xls

then you'll save the Link as usual!

Verfasst: Do 5. Feb 2004, 12:46
von mikamedia
yes, but that is not really admin-user friendly.

I would like the customer to be able to select the Word / Excel document from the pulldown menu like PDF and Media.

I saw it somewhere on this forum but I cannot find it anymore :(

Thanks!

~ john

Verfasst: Do 5. Feb 2004, 22:22
von Cimme
sry, i didn't know! :D

hm, perhaps the developer-team could you out!

lets wait! :D

Verfasst: Fr 6. Feb 2004, 15:04
von PickPay
Open the file 'contenido\external\wysiwyg\spaw\dialogs\insert_link.php'.

Scroll to Line 184, which should look like this:

Code: Alles auswählen

$sql = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE idclient = '".$client."' AND filetype = 'pdf' ORDER BY dirname, filename";
Change it to

Code: Alles auswählen

$sql = "SELECT * FROM ".$cfg["tab"]["upl"]." WHERE idclient = '".$client."' AND filetype IN ('pdf','doc','ppt','xls','rtf','dot') ORDER BY dirname, filename";
So the documents with the extensions pdf, ppt, xls, rtf and dot will be listet under 'PDF' in the SPAW-Dialog.

Verfasst: Mo 9. Feb 2004, 16:23
von mikamedia
Thank you very much PickPay !!

Works very well. This is exactly what I am looking for!

~ john