Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment in the forums, please register and review our posting policy & tips. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-22-2007, 03:34 PM
Senior Member
 
Posts: 53
Default Modify URL for file links

Hi,

Our file server is mapped as "H:\" and I would like for the URL zimlet to automatically convert any strings that begin with "H:/" to a link and add "file://" to the beginning.

So I edited url.js to add the following:

if (escapedUrl.substr(0, 3) == 'H:\') {
escapedUrl = "file://" + escapedUrl;
}

but it's not working. Does anybody have any insight on this?

Thanks,

Tony
Reply With Quote
  #2 (permalink)  
Old 08-22-2007, 03:35 PM
Senior Member
 
Posts: 53
Default

sorry, all should be H:\
Reply With Quote
  #3 (permalink)  
Old 08-24-2007, 06:23 PM
Zimlet Guru
 
Posts: 387
Default

Quote:
Originally Posted by tonythemediaguy View Post
sorry, all should be H:\
Tony,

Try substituting it to file://H| (note | instead of :\).
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message store hard links bdbell Migration 0 05-22-2007 06:14 AM
rest url and accents lfasci Developers 1 03-02-2007 09:58 AM

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com

sourceforge.net



 

Search Engine Optimization by vBSEO 3.1.0