By sol77 on
Hi,
I'm trying to figure out how to create a link in the menu using internal Drupal paths, like node/add/, that goes directly to a user's personal blog. (blog module)Basically the "my blog" link that appears under blog, but I want to place it elsewhere.
I simply can't figure out where to find the information, on this site or in the source code.
I've tried blog/user and blog/me going under the assumption the it is blog/'usernumber' but both take me to blog/.
Any pointers on how to do this? Information on possible internal Drupal paths would be very appreciated as well.
Thanks.
Comments
investigate the
investigate the path.module (http://drupal.org/handbook/modules/path) which is part of core & the pathauto.module (http://drupal.org/handbook/modules/pathauto) in the downloads area, this will make your task much easier.
Ah, thank you very
Ah, thank you very much.
-----------------------------------------------------------------------------------------------
Siegetheday.Org
I just checked blog.module
I just checked blog.module which confirms that the path is blog/'usernumber'
See the row:
Didn't help me much though but maybe someone will find it useful. ^^
-----------------------------------------------------------------------------------------------
Siegetheday.Org
"me" drupal module
take look at http://drupal.org/project/me
---
Drupal Themes Live Preview - themegarden.org
Conclusion
After looking through the blog, path and pathauto modules it seems the uid can't be reached with the internal path system as it is now. Unless I missed something, bear in mind that I don't know php very well. But the "me" or "pathauto" module will take care of my problem. Thanks VeryMisunderstood and themegarden.org for the help.
-----------------------------------------------------------------------------------------------
Siegetheday.Org