Next and Previous buttons

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
thetallguy

Re: Next and Previous buttons: Small bug fix

Post by thetallguy »

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
thetallguy

Re: Next and Previous buttons

Post by thetallguy »

Patricia, thanks for spending time to show a N00B the way things work!  I've been thinking that it would be a fair amount of work to figure out the way we do things here at CMSMS.  I hadn't realized how accessable the SVN versions were.  It will undoubtably save me much frustration going forward.

Michael
Post Reply

Return to “Modules/Add-Ons”