By apt94jesse on
This may be a stupid question, but how can I make a link to "My recent posts" using the tracker module? The recent posts link takes you to the sitewide posts, then you can click again to go to the individual posts. I just want to link to the users' posts, not the site posts.
I figured I could put in a "tracker/$user->uid" link or something like that in the menu path, but the variable is not rendering.
What am I doing wrong?
Thanks in advance.
-Jesse
Comments
I have not tried this
I have not tried this exactly, but I think the views module would be your best bet.
here's how i am doing it in views
With the views module, I use the following to replace user/*/track. You don't need to know how to write views as below; there's a lovely GUI. But you could copy this into Views' import screen. It replaces the track tab you'd see on the user's account. I don't have it in a menu.
I don't even remember if I made this myself or if it came with the package. None the less, here it is:
=-=
code may be closer to
but turning that into a path may be a problem, it may have to get hacked into the menu.inc module?
Thanks
Views fixed this quite quickly. Thanks. I just thought there may be something easier, though this was not hard at all.
Thanks again.
-Jesse
Views no longer replaces the
Views no longer replaces the default tracker. If you disable the default tracker, the tab goes away, but if you enable the default tracker, the view page is replaced by the default tracker page and never shows up. I'm not sure how to make tabs myself, unless I custom theme the user profiles and replace all the tabs with hard-coded tabs. The hook_menu documentation confuses me.
---
I have created and maintained countless Drupal-powered sites and have made heavy modifications to modules on a site-by-site basis. I am an illustrator, a game developer, and a web developer. I also stream on Twitch in my spare time.
_
I'm not sure I understand. If you disable the core tracker module there's no way it should magically reappear unless it's some sort of caching issue. And if the default tracker view included with views doesn't provide a tab, you can easily add one-- it's in the menu settings i believe ('menu as tab' or something like that).