I think there's a small bug in the cms_selflink tag... When I specify "menu=1", I get empty links. As far as I can tell, the menu_text is only loaded if "dir" is specified. I changed the code to fix the problem for me, and I'm posting it here so others can verify it and/or apply the fix to the production code.
The fix goes right after line 37, as shown in this code fragment:
Code: Select all
$pageid = $content->Id();
$alias = $content->Alias();
$name = $content->Name(); //mbv - 21-06-2005
$url = $content->GetUrl();
$menu_text = $content->MenuText(); //** FIX: THIS LINE ADDED **
Maybe after I've learned my way around and figured out the rules, I'll figure out how to update the code myself. Until then, I'll leave it to the trained professionals.
Hope this helps!
Michael