Internal link to .doc and .xls?

Gesperrt
mikamedia
Beiträge: 26
Registriert: Mo 30. Jun 2003, 11:07
Kontaktdaten:

Internal link to .doc and .xls?

Beitrag 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
Cimme
Beiträge: 48
Registriert: Fr 3. Okt 2003, 23:25
Wohnort: Kornwestheim
Kontaktdaten:

Beitrag 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!
Version: 4.6.4
PHP: 5.0.5
MySQL: 4.1.9
System: Selbstgebasteltes Linux
Human: Fortgeschrittener
mikamedia
Beiträge: 26
Registriert: Mo 30. Jun 2003, 11:07
Kontaktdaten:

Beitrag 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
Cimme
Beiträge: 48
Registriert: Fr 3. Okt 2003, 23:25
Wohnort: Kornwestheim
Kontaktdaten:

Beitrag von Cimme »

sry, i didn't know! :D

hm, perhaps the developer-team could you out!

lets wait! :D
Version: 4.6.4
PHP: 5.0.5
MySQL: 4.1.9
System: Selbstgebasteltes Linux
Human: Fortgeschrittener
PickPay
Beiträge: 164
Registriert: Di 2. Dez 2003, 19:38
Wohnort: Zürich
Kontaktdaten:

Beitrag 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.
mikamedia
Beiträge: 26
Registriert: Mo 30. Jun 2003, 11:07
Kontaktdaten:

Beitrag von mikamedia »

Thank you very much PickPay !!

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

~ john
Gesperrt