Home » Archived » EPF » How to provide link to a file
How to provide link to a file [message #52803] |
Wed, 20 August 2008 14:34  |
Eclipse User |
|
|
|
Originally posted by: ihandojo.njm.com
Hi. I have a rather "newbie" question, but since I couldn't find the
answer anywhere else, maybe this is the right forum.
I'm trying to add a link to a file on a shared folder, say,
file://servername/DFS_Root/SharedDocs/Database.mdb
In the editor, both methods of adding a hyperlink don't seem to work for
me. Once I select the text and click on the hyperlink button:
1) If I choose the "URL" type, it always trims the "file:" part, leaving
this to be a relative link that starts with "servername/DFS_....", which
consequently be translated incorrectly as a local link. Overriding it in
the HTML tab as an "http://servername/..." doesn't seem to work either
since it will self-correct. Changing into using \ instead of / didn't work
either since it will auto-correct and remove the \'s.
2) If I choose the "File" type, it actually picks up the file and puts it
under resources folder and refer to it (the link will be transformed into
something like <a href="./resources/Database.mdb" target="_blank"> which
is not I want since I don't want EPF to retain a local copy. Size of the
resulting published website also grows accordingly to the size of the file.
Any feedback on how I can do this?
Thanks in advance for anybody's help.
p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
this being a bug that was fixed in later version anyway (unless I missed
it).
|
|
| |
Re: How to provide link to a file [message #52991 is a reply to message #52915] |
Fri, 22 August 2008 13:50   |
Eclipse User |
|
|
|
Originally posted by: ihandojo.njm.com
Thanks, but I tried this and unfortunately it doesn't work.
When the link starts with //, the final link will be interpreted in
relative terms, so you'll end up with something like
http://www.yourwebsite.com/EPF/workproducts///servername/DFS _Root/SharedDocs/Database.mdb
As a workaround, I ended up moving the .mdb file into a subfolder under
the workproducts subfolder under the final EPF folder on the server where
the website is hosted, and take advantage of the relativeness of the link
to go there, so I enter the URL link in the EPF editor to be something
like ./MyDatabase/Database.mdb and so the final link ends up as
http://www.yourwebsite.com/EPF/workproducts/MyDatabase/Datab ase.mdb
This is not a real solution as far as difficulties with EPF's editing tool
is concerned, so if anybody including the EPF gurus have an answer, it
would be appreciated all the same.
daniel wrote:
> I have an idea:
> 1,in the rich edit page, you select url type,and input:
> //servername/DFS_Root/SharedDocs/Database.mdb
> 2,switch to html code page,you will see EPF cut //,
> you must add // by yourself.
> So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb
Alex wrote:
>> Hi. I have a rather "newbie" question, but since I couldn't find the
>> answer anywhere else, maybe this is the right forum.
>> I'm trying to add a link to a file on a shared folder, say,
>> file://servername/DFS_Root/SharedDocs/Database.mdb
>> In the editor, both methods of adding a hyperlink don't seem to work for
>> me. Once I select the text and click on the hyperlink button:
>> 1) If I choose the "URL" type, it always trims the "file:" part, leaving
>> this to be a relative link that starts with "servername/DFS_....", which
>> consequently be translated incorrectly as a local link. Overriding it in
>> the HTML tab as an "http://servername/..." doesn't seem to work either
>> since it will self-correct. Changing into using instead of / didn't work
>> either since it will auto-correct and remove the 's.
>> 2) If I choose the "File" type, it actually picks up the file and puts it
>> under resources folder and refer to it (the link will be transformed into
>> something like <a href="./resources/Database.mdb" target="_blank"> which
>> is not I want since I don't want EPF to retain a local copy. Size of the
>> resulting published website also grows accordingly to the size of the file.
>> Any feedback on how I can do this?
>> Thanks in advance for anybody's help.
>> p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
>> this being a bug that was fixed in later version anyway (unless I missed
>> it).
|
|
| |
Re: How to provide link to a file [message #53065 is a reply to message #52991] |
Mon, 25 August 2008 16:51  |
Eclipse User |
|
|
|
Originally posted by: storaskar.xx.xxx.xxx
This is by design.
RTE only supports local file attachments that are in library.
This could be treated as enhancement request. You could file an bugzilla
on that.
Thanks
Shilpa
|
|
| |
Re: How to provide link to a file [message #590246 is a reply to message #52915] |
Fri, 22 August 2008 13:50  |
Eclipse User |
|
|
|
Thanks, but I tried this and unfortunately it doesn't work.
When the link starts with //, the final link will be interpreted in
relative terms, so you'll end up with something like
http://www.yourwebsite.com/EPF/workproducts///servername/DFS _Root/SharedDocs/Database.mdb
As a workaround, I ended up moving the .mdb file into a subfolder under
the workproducts subfolder under the final EPF folder on the server where
the website is hosted, and take advantage of the relativeness of the link
to go there, so I enter the URL link in the EPF editor to be something
like ./MyDatabase/Database.mdb and so the final link ends up as
http://www.yourwebsite.com/EPF/workproducts/MyDatabase/Datab ase.mdb
This is not a real solution as far as difficulties with EPF's editing tool
is concerned, so if anybody including the EPF gurus have an answer, it
would be appreciated all the same.
daniel wrote:
> I have an idea:
> 1,in the rich edit page, you select url type,and input:
> //servername/DFS_Root/SharedDocs/Database.mdb
> 2,switch to html code page,you will see EPF cut //,
> you must add // by yourself.
> So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb
Alex wrote:
>> Hi. I have a rather "newbie" question, but since I couldn't find the
>> answer anywhere else, maybe this is the right forum.
>> I'm trying to add a link to a file on a shared folder, say,
>> file://servername/DFS_Root/SharedDocs/Database.mdb
>> In the editor, both methods of adding a hyperlink don't seem to work for
>> me. Once I select the text and click on the hyperlink button:
>> 1) If I choose the "URL" type, it always trims the "file:" part, leaving
>> this to be a relative link that starts with "servername/DFS_....", which
>> consequently be translated incorrectly as a local link. Overriding it in
>> the HTML tab as an "http://servername/.." doesn't seem to work either
>> since it will self-correct. Changing into using instead of / didn't work
>> either since it will auto-correct and remove the 's.
>> 2) If I choose the "File" type, it actually picks up the file and puts it
>> under resources folder and refer to it (the link will be transformed into
>> something like <a href="./resources/Database.mdb" target="_blank"> which
>> is not I want since I don't want EPF to retain a local copy. Size of the
>> resulting published website also grows accordingly to the size of the file.
>> Any feedback on how I can do this?
>> Thanks in advance for anybody's help.
>> p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
>> this being a bug that was fixed in later version anyway (unless I missed
>> it).
|
|
|
Re: How to provide link to a file [message #590272 is a reply to message #52803] |
Mon, 25 August 2008 05:44  |
Eclipse User |
|
|
|
Originally posted by: mbillaouadil.hotmail.fr
You can update directly XMI file.
1 - Right Clik on your Guidance (or other object) : Show in Resource
Navigator.
2 - Open the XMI file associated to your Object.
3 - Put the value of your URL (file://..).
4 - Save your file and Test.
I hope that can work for you.
Good Luck.
|
|
| |
Goto Forum:
Current Time: Sat May 10 11:21:38 EDT 2025
Powered by FUDForum. Page generated in 0.04553 seconds
|