What is the best way to handle internal links
giggler - February 10, 2008 - 03:01
For internal links that are linked from the content area, what is the best way or best wysiwyg editor to handle this. In case if you need to change directories later or even change domain, how is this handled so that there won't be broken links?

=-=
always use relative urls for your content. Using absolute urls is where people get pinched when moving their sites. The same holds true for images, image in themes and the like..
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Link to Content and URL Replace Filter modules
There's a Link to Content module for TinyMCE but I've had less than stellar results with it. Your mileage may be better than mine.
Also, the URL Replace Filter module may be helpful.
Thanks - I have not seen
Thanks - I have not seen Link to Content. I did install EasyLink for TinyMCE, but the problem seem to be that it does not update the alias if you ever were to change it. It really need to be somehow tied to the node number...but it's not. So any update to alias will result in broken links.
Link to Content does the
Link to Content does the same thing as EasyLink which will embed the /alias in the html. The problem is if you ever change the alias path in pathauto. Then you will have broken links. The URL replace filter seem to do domain filters and not for changing alias. Any idea on the best way to avoid having broken links from alias changes?
Link Node
One way to create a link that doesn't break if a node's path alias changes is to manually create an HTML link to the node -- or you can use something like Link Node.
I asked the same quesiton on
I asked the same quesiton on IRC. A gentleman told me to look at http://api.drupal.org/api/function/l I dont understand exactly what APIs are, pros, cons, etc...but from research, this is far superior to HTML. Basically, I just want to link some sales & instruction pages to FAQ pages.
I'm not sure where to get started on this. HTML seems much easier. I dont even know where to begin. The 'return value' is 'an HTML string containing links to a given path' ...which is exactly what I want...just not sure what to imput.
Can someone point me in the right direction to get started?
Thanks,
Kelly