Recipe 21: Integrating the Tracker View with the Tracker module
Enable the tracker module at
admin/build/modules
. It is a core Drupal module so you don't need to download anything (if the comment module is not yet enabled, go ahead and enable it since it's required for tracker).Go to the My Account page. A link is located in your Administration menu. You may also visit Administer | User management | Users (
admin/user/user
), and click on a username. Note the new Track tab.Notice the URL for this tab,
http://YOURSITE.com/user/1/track
. The1
in the URL is a user ID. There is no connection between this URL and your tracker view. They are two different resources. You can, however, make a small modification in the URL of your tracker view enabling it to replace the module's tracker display.Go to
admin/build/views
and open a tracker (use either the default, or one of your existing tracker views from Recipe 20 or 21).In the Page fieldset, replace the URL with the following:
user/$arg/track
.This...