Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [macbethgr] Category Menu Everywhere

Quote Reply
Re: [macbethgr] Category Menu Everywhere In reply to
A few minor changes to this sub,and you could pass in a parameter to indicate how (what field) you wanted to sort by.

This is a chunk of code I have in my utilties file at the moment, and I hope to get it released soon, with updates to the other plug ins. This is something that goes with the top_n searches, last_n links, etc.

For those new, or who might not remember, about a year ago I started to hack heavily on the system, then about 8-10 months ago, just after making significant improvements, my life sort of bottomed out, and took a second down turn on 9/11.

Anyway, what I was doing at the time, and have been trying to reconstruct, is to add a new "utilities" group to the Plugins area, Plugins::PUGDOG, into which I've been putting my various routines and utilties. I've avoided where possible, using globals to do things, since I have to update each site manually to do that. By putting the functions into a hierarchy, and calling them as functions from inside the templates, you get the same effect, and even more features -- plus easy updating (just copy the new modules in, to all your sites.

It's the same idea PERL uses, and that Links itself uses.

Because the Plugins area is designed to be user-edited, and third-party accessible, I chose to put the modules in there, rather than in some other area, even if the routines are not really "plugins" like my Days_Old routines.

Layout is currently:

PUGDOG::Utils (general things, odds and ends, etc)
PUGDOG::Image (all my image routines, and such)
PUGDOG::Upload (all the stuff I've done working with files, this all has to be redone, moved out of "Image")


And a few others. But, basically, the idea is that my routines will not clash with anyone elses, and they should survive any sort of upgrade, and be accessible from any routines.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Category Menu Everywhere reenee 18193 Dec 31, 2001, 4:43 AM
Thread Re: [reenee] Category Menu Everywhere
pugdog 17797 Dec 31, 2001, 7:06 AM
Thread Re: [pugdog] Category Menu Everywhere
Paul 17695 Dec 31, 2001, 8:48 AM
Thread Re: [RedRum] Category Menu Everywhere
pugdog 17698 Dec 31, 2001, 9:54 AM
Thread Re: [pugdog] Category Menu Everywhere
Paul 18216 Dec 31, 2001, 10:01 AM
Post Re: [RedRum] Category Menu Everywhere
reenee 17569 Dec 31, 2001, 10:51 AM
Thread Re: [reenee] Category Menu Everywhere
Alex 17636 Dec 31, 2001, 11:09 AM
Thread Re: [Alex] Category Menu Everywhere
reenee 17617 Dec 31, 2001, 11:19 AM
Thread Re: [reenee] Category Menu Everywhere
reenee 17549 Dec 31, 2001, 11:57 AM
Thread Re: [reenee] Category Menu Everywhere
pugdog 17696 Dec 31, 2001, 12:04 PM
Thread Re: [pugdog] Category Menu Everywhere
Alex 17708 Dec 31, 2001, 12:05 PM
Thread Re: [Alex] Category Menu Everywhere
Paul 17665 Dec 31, 2001, 12:07 PM
Thread Re: [RedRum] Category Menu Everywhere
reenee 17574 Dec 31, 2001, 1:11 PM
Thread Re: [reenee] Category Menu Everywhere
Alex 17575 Dec 31, 2001, 1:44 PM
Thread Re: [Alex] Category Menu Everywhere
reenee 17630 Dec 31, 2001, 2:28 PM
Thread Re: [reenee] Category Menu Everywhere
reenee 17549 Dec 31, 2001, 3:39 PM
Thread Re: [reenee] Category Menu Everywhere
Alex 17526 Dec 31, 2001, 3:45 PM
Thread Re: [Alex] Category Menu Everywhere
reenee 17542 Jan 1, 2002, 6:58 PM
Thread Re: [reenee] Category Menu Everywhere
Alex 17511 Jan 2, 2002, 8:49 AM
Thread Re: [Alex] Category Menu Everywhere
macbethgr 17442 Apr 18, 2002, 4:53 PM
Thread Re: [macbethgr] Category Menu Everywhere
macbethgr 17377 Apr 19, 2002, 7:47 AM
Thread Re: [macbethgr] Category Menu Everywhere
pugdog 17264 Apr 19, 2002, 12:04 PM
Thread Re: [pugdog] Category Menu Everywhere
Nosmada 16974 Jul 24, 2003, 6:29 PM
Thread Re: [Nosmada] Category Menu Everywhere
ryel01 16843 Mar 14, 2004, 2:07 AM
Thread Re: [ryel01] Category Menu Everywhere
Mark2 16456 Feb 15, 2006, 9:27 AM
Thread Re: [Mark2] Category Menu Everywhere
afinlr 5350 Feb 16, 2006, 10:03 AM
Thread Re: [afinlr] Category Menu Everywhere
Mark2 5280 Feb 17, 2006, 8:10 AM
Thread Re: [Mark2] Category Menu Everywhere
afinlr 5213 Feb 17, 2006, 10:44 AM
Post Re: [afinlr] Category Menu Everywhere
Mark2 5176 Feb 17, 2006, 1:51 PM
Thread Re: [Mark2] Category Menu Everywhere
HopeForYou 5059 Jun 1, 2009, 7:57 PM
Post Re: [HopeForYou] Category Menu Everywhere
Andy 5013 Jun 1, 2009, 11:51 PM