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
Internal link to .doc and .xls?
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!
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
PHP: 5.0.5
MySQL: 4.1.9
System: Selbstgebasteltes Linux
Human: Fortgeschrittener
Open the file 'contenido\external\wysiwyg\spaw\dialogs\insert_link.php'.
Scroll to Line 184, which should look like this:
Change it to
So the documents with the extensions pdf, ppt, xls, rtf and dot will be listet under 'PDF' in the SPAW-Dialog.
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";
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";