translate node/id to the corresponding url alias

alexcunha - September 24, 2009 - 20:22
Project:Pathologic
Version:6.x-2.0-beta22
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

Not sure if the purpose of this modules, but pathologic can translate URLs with node/id with the corresponding url alias?

thanks for the clarification

#1

Garrett Albright - September 24, 2009 - 20:29

It's not the purpose of the module, but yes, it will do that in the same instances where Drupal itself would do it. (I think.)

#2

alexcunha - September 25, 2009 - 14:55

Thanks for the answer.

The problem I have is: when creating and editing content, the editors (humans) will create links with node/id. I need a automatic way (filter?) that when the content is viewed the links appear with url/alias instead of node/id.

The default installation of drupal take care of this? It is needed a filter for that? Pathologic can do that?

I have several sites with drupal 6.14 and Pathologic but node/id ulrs are not translated.

Thanks for your help

#3

Garrett Albright - September 25, 2009 - 15:19

That answer I gave yesterday was more than a little unclear. Sorry.

When Pathologic process a path, it tries to guess if it is a path to something inside your Drupal installation, such as a node. If it looks like it is, it runs the through Drupal's url() function, which will convert node/X paths to aliases if the aliases exist.

So, if you're using Pathologic and this is not happening, unfortunately it means there could be several things wrong:

  • Pathologic is not processing the paths. (Are the paths changing at all?)
  • Pathologic is processing the paths, but thinks they're external paths for some reason, and so therefore not running them through url(). (What format are the paths in? Do the nodes you're trying to link to actually exist?)
  • Pathologic is processing the paths and running them through url(), but since there are no custom paths set for the node being linked to, the paths are not being converted.

You should also remember that the output of input filters like Pathologic is cached; Pathologic is not reprocessing the text every time the node is viewed. So if you create a link to node/123 before that node has a custom path, then give node 123 a custom path, your link will still point to node/123 until you either edit the node with that link in it or clear your site's cache.

Hope this helps.

#4

Narendrak - October 28, 2009 - 12:56

hi,

How can i get corresponding translated node/id of the node id?

Thanks in advance..

#5

gsnaveen - October 29, 2009 - 03:28

Hi,

I am using 6.x-1.2 version. I am not able to translate http://ganaveen-xyz.com:90/drupal/forum/2 ... here in location of 2 i want to have the Forum name.

Is it possible to have that? by even using another module.

any guidance will be appreciated.

Thanks,
Naveen

#6

Garrett Albright - October 29, 2009 - 15:53

gsnaveen, you should be able to do that using the core "Path" module and creating a path alias for forum/2.

#7

Garrett Albright - November 16, 2009 - 21:09
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.