Closed (fixed)
Project:
Pathauto
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2007 at 00:05 UTC
Updated:
7 Nov 2007 at 11:25 UTC
Ok, so Pathauto does exactly what I want, i.e. auto create friendly uri paths, great!
I want to use "./" files paths to point to my root file system web folder but Path auto being Path auto changes the URI so that my path is now dosent point to the root web folder anymore..(as expected!)
e.g. ![]()
Is there a way to escape the auto path generation so that I can still refrence the root web folder as stated above?...reason is because Im developing locally and I want to still create content with "./" so that paths dont break when I move the code to the production site.
Comments
Comment #1
tinils commentedoops! sorry, e.g code for above post
Comment #2
gregglesI don't see how this is a pathauto problem.
Pathauto wouldn't create an alias for files/images/images1.png since that is just an uploaded file.
Can you perhaps explain some more?
Comment #3
tinils commentedOk, thanks for the replay. Here goes...
I have set up my nodes path as such : [termpath-raw]/[title-raw]
Thus, pathauto generates my links as http://example.com/section1/page1 etc etc...perfect!
However, when I create a page content and put
A picture of me! <img src="./files/images/me.png">on a node page1 (under the taxonomy section1)...the img src is rendered on the node content as
A picture of me! <img src="http://example.com/section1/page1/files/images/me.png">However, this below is what I intended
A picture of me! <img src="http://mysite.com/files/images/me.png">Notice the src path difference?..its pretty obvious why its generating that code....which is why I asked if there was some sort of was to escape pathauto in content so I can still refrence the root path relatively...e.g
<a href="[wwroot]/files/myfile.pdf">This is to escape pathauto in HTML ofcourse...bacause i DONT want my content creators to use php in content (I doubt my content creators even know what php is anyways...)
Comment #4
vm commentedyep you're right! It is pretty obvious! ........... You aren't calling the relative path correctly
A picture of me! <img src="./files/images/me.png">= incorrectA picture of me! <img src="/files/images/me.png">= correct*note that in the correct HTML there is no . in front of /files/
paths are relative to index.php in Drupal, as such, there is no need for ./ or ../
Feel free to mark this fixed once you see the err in your ways ; )
Comment #7
tinils commentedYes! I have seen the err in my ways!
Thank you!!! sorry for wasting everyones time though :(
Comment #8
gregglesThanks VeryMisunderstood for explaining that.
Thanks tinils for your detailed description of the problem.