synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 8
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 2631 times and has 7 replies Next Thread
Male pincho
Newbie



Joined: May 22, 2007
Posts: 33
Status: Offline

editor is replacing internal links at will

Hi Experts:

I have been using opencms 6.2.3 (Tomcat 4.1, MySQL 5, Apache 2.2).

Suddenly, after saving, the editor changes every internal link I place in a html file pointing to a resource in the workplace. to the fullpath starting from root level, for instance:

<a href="dir1/file.doc">go to file</a>

I save and the link changed to

<a href="/full/path/from/root/level/dir1/file.doc">go to file</a>

it shouldn't matter I know but, there is always a but, when I publish the resource the path gets worst, it looks like:

http://myhost.com/export/sites/default//full/path/from/root/level/dir1/file.doc

of course the sorce is unrechable in the online project for the offline no problem at all. Any help is appreciatted.

best regards,

arian
[Jun 8, 2007 7:36:11 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male Arrasz
Advanced Member
Member's Avatar


Joined: Mar 9, 2003
Posts: 1279
Status: Offline
Re: editor is replacing internal links at will

Hi,

just as a hint, if you work with the wysiwyg Editor try using Link Galleries, then you will see how opencms works.

hth

Regards Achim
----------------------------------------
--
/**
* Joachim Arrasz
* OpenSource Solutions
* Synyx GmbH & Co. KG Karlstr. 68 76137 Karlsruhe
* @phone +49(0)721 66 24 866
* @eMail arrasz@synyx.de
* @www http://www.synyx.de
*/
[Jun 11, 2007 6:28:38 AM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male pincho
Newbie



Joined: May 22, 2007
Posts: 33
Status: Offline

Re: editor is replacing internal links at will

Hi Achim:

Thanks for your reply, it was useful. I instructed users to use Download Galleries instead of upload downloable files (tgz, pdf, tar) into the location they wanted to. In such a way OpenCMS doesn't get it wrong when publishing-rewriting urls.

On the other hand, in my humble opinion, I think it is a bit of an anarchy from opencms HTML editor to rewrite internal uri after saving, even links to other html in any offline project. It definitely will not confuse me anymore (thx to you) but regular users get frustrated when their clean hyper-reference to "dir1/somefile.html" get overwritten to "/root/path/dir/dir1/somefile.html". This a reference to an internal html-resource in the workplace not an external link, which as you pointed should be packaged in the external link gallery.

Please correct me, is there the need in opencms 6.2.3 to start any internal reference with the trail symbol ("/")?. If it is so, are relative links between html files not-relative anymore?. As you see these are some questions that users can do, included myself, because, I think, move a bit away from what they are used to when creating html files.

May be this post is much of html-philosophy than a real problem of Openmcs. Your reply certainly help and that's also the point: make things work with the tools Opencms provides.

Best regards,

arian


 
Hi,

just as a hint, if you work with the wysiwyg Editor try using Link Galleries, then you will see how opencms works.

hth

Regards Achim

[Jun 11, 2007 2:07:33 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male Arrasz
Advanced Member
Member's Avatar


Joined: Mar 9, 2003
Posts: 1279
Status: Offline
cool   Re: editor is replacing internal links at will

Hi,

hm, here is also better to use the Download Gallery Feature because without them it's quite difficult to handle rights management.

On the other hand... if you have to ensure that opencms will not recreate the pathes you should inspect opencms-modules.xml

afair there is an option to restrict this link rewriting, which is a feature ... not a bug :)

hth

Regards Achim
----------------------------------------
--
/**
* Joachim Arrasz
* OpenSource Solutions
* Synyx GmbH & Co. KG Karlstr. 68 76137 Karlsruhe
* @phone +49(0)721 66 24 866
* @eMail arrasz@synyx.de
* @www http://www.synyx.de
*/
[Jun 11, 2007 2:51:26 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male pincho
Newbie



Joined: May 22, 2007
Posts: 33
Status: Offline

Re: editor is replacing internal links at will

Hi Achim:

Glad that you are still replying to this post.

I am still looking for the link replacement option in opencms-modules.xml. I am probably overlooking something or the reference to such property is not straight-forward.

Before this reply I looked into in any of the opencms config files the most accurate match to something regarding relative links. I found it in opencms-importexport.xml

In the staticexport section

<userelativelinks>false</userelativelinks>

I changed it to true but nothing happened. I googled for a while as well.

Please if you could supply me with some link where this rewrite feature is documented I'll appreciated.

tia,

arian
[Jun 11, 2007 8:58:07 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Female veggie
Stranger



Joined: Dec 2, 2004
Posts: 2
Status: Offline

Re: editor is replacing internal links at will

Hi Pincho,

I found out, that using the fckeditor-link-icon instead of the opencms-link-icon does not change the link. And the links are only replaced, if you edit a link, not if you create a new one (and never touch it again).
Can you confirm that?
Furthermore I found out, that the latest version of fckeditor (2.4.2) does not have this kind of behavior.
I wrote a howto for updating the editor version in opencms. You can find it in this forum. Unfortunately only in german.

HTH
Veggie
[Jun 14, 2007 2:24:36 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male pincho
Newbie



Joined: May 22, 2007
Posts: 33
Status: Offline

Re: editor is replacing internal links at will

Hi Veggie:

Thanks for your reply.

 

I found out, that using the fckeditor-link-icon instead of the opencms-link-icon does not change the link. And the links are only replaced, if you edit a link, not if you create a new one (and never touch it again).
Can you confirm that?


I have set FCK editor as default for my HTML files. How can I diferenciate a fckeditor-link-icon from opencms-link-icon?. When I edit a page I am assuming that every icon showed belongs to fckeditor.

I tried to create new links in three different ways in order to check what you asked. Using the link-icon to a resource in the same directory, to a different directory (never setting root trial something ike "../go/toresource.html") and manually inserted in the HTML code (source editing) a reference to the source itself. In all three the editor changes the path starting from root level.

 

Furthermore I found out, that the latest version of fckeditor (2.4.2) does not have this kind of behavior.
I wrote a howto for updating the editor version in opencms. You can find it in this forum. Unfortunately only in german.


I'll take a look and try. My german is worst than my english (which is already bad) but probably some online translator will help me.

By the way things are getting worst than I thought, the preview icon -which now I don't really know to whom belongs fck or opencms- is not having any effect, it returns a blank page. I don't want to open a new thread with this.

So I'll try as soon as I can to find more information on fck options and preferences.

thank you very much once more,

arian
[Jun 14, 2007 7:50:07 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male pincho
Newbie



Joined: May 22, 2007
Posts: 33
Status: Offline

Re: editor is replacing internal links at will

Hi Veggie:

I realized a part of what you meant

 


I have set FCK editor as default for my HTML files. How can I diferenciate a fckeditor-link-icon from opencms-link-icon?. When I edit a page I am assuming that every icon showed belongs to fckeditor.



opencms-link-icon is the one w.o. the world above. Let say, used for internal reference in opencms workplace. So any other is fck-related. Well then... fck related icon not working. The file Browser opened when I click on the fck-link-icon is empty so my folder tree seemed to be empty for fckeditor. The only thing available is the folder creation buttom which, in some way, function but, when done, yet not visible (the folder) in the fck File browser. The folder is indeed created at root level in my VFS.

Regards and TIA for your help,

aarian
[Jun 15, 2007 12:41:35 PM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]