I wanted to be able to create a menu link that pointed directly to a user's list of their authored content. The CMF module http://drupal.org/project/cmf does provide this page but no menu link. The path is user/1/cmf so to make the link work for everyone, I thought the perfect solution with be 'Me' aliases. The module works great for everything else, except on the CMF page it is showing all content instead of just the user's authored content only. Manually substituting the UID for "me" in the path does show the correct results, like it did before I installed the Me module.

I'm using Drupal 6.8

Comments

luti’s picture

It would be nice to have an option for site admins to have a list of URLs to be preserved (skipped by me module). It would resolve this issue, or? So, this probably is more a feature request as a bug report...

cdale’s picture

Project: me aliases » Content Management Filter
Component: Miscellaneous » Code
StatusFileSize
new13.4 KB
new584 bytes

This is actually a problem with the cmf module due to the drastic change in how the menu system works between D5 and D6.

The way me currently works, is by searching for any menu paths that utilize %user, and catches those paths to allow 'me' to work in those places totally transparent to the module that owns the path. The cmf module uses %user in its menu path, but does not pass on the argument as is expected in the D6 menu system.

I have attached two separate patches that take two different approaches to solving this problem and allowing the cmf module to work with the me module as it currently is.

1) Don't use %user, just simply use %. This way, the D6 menu system does not do any extra processing on the arguments in the path.

2) Use %user, but pass on the user object via the menu system, instead of using arg(1) to check for it all over.

Ultimately, the choice is up to the cmf maintainer. I will be writing a patch for 'me' that should allow cmf to work as is by providing an option to redirect user/me/cmf to user/uid/cmf, rather than keeping the user on user/me/cmf and transparently replacing 'me' with uid in code for the module that requires it.

I will report here when that patch is done, but you will have to enable the option for it in the me settings.

brisath’s picture

Thanks for your attention to this. I look foward to trying one of these approaches.

cdale’s picture

I have just created a new me release which should allow me to work with cmf as is. (Albeit slightly limited). You will most likely either need to choose the 'Redirect to uid' option, or exclude user/me/cmf in the paths.

nunoveloso’s picture

Status: Active » Fixed

Hello! Sorry for being away but I have been very very busy lately.

This issue is fixed on stable version 1.6.

Thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.