By raphaeltsr on
I'm theming a custom content type (creating a node-content_type.tpl.php) but when I try printing $node->path (print $node->path) it just do for authenticated users. I checked the availble vars print_r($node) and it just shows path when I'm logged in (used root account, there is no other user account and there won't be).
All permissions to it are given (access all views - since I'm also using a page view as teaser list - and access content) to both authenticated and anonymous users.
Does anyone have a clue on solving that problem?
Thanks in advance!
Comments
...
That variable is controlled by "administer url aliases". It's not meant for end users.
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.
Hello Michelle, Thank you
Hello Michelle,
Thank you for this quick and helpful answer.
That's a very bad news you gave me! ehehehe. Since that's no end user variable, which one would output me the same result? Or will I have to build the hole path by myself? eek!
Thanks
fixed in Drupal 5.x-dev
This is fixed in Drupal 5.x-dev (see commit #100270) and the fix will be included in Drupal 5.8. Until then, you can safely use the path.module from the latest Drupal 5.x-dev version.
Large Robot
http://www.largerobot.com
christefano, thanks! That
christefano, thanks! That was pretty much of what I needed. :)
Drupal 5.8? Is there any realease date already for that?
Nice!
I got burned by that variable ages ago and didn't realize it was considered a bug. Nice to know it's fixed. :)
Michelle
--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.