Gossamer Forum
Quote Reply
Plugin Suggestion
I'm overstretched to implement this so I'm throwing it out for anyone else who wants to try it. If anything when finished, it would give you an even more flexible links SQL installation. So here goes.

In a nutshell, this plugins would allow arbitrary link record in the Links table can be 'linked" to another record in another table. This is cool because you can have many different types of records in any of your categories and depending on what a link has been associated with, will be displayed differently. It would also allow for future flexibilty by using a somewhat write once, use many approach.

In the Links table, you'll need at least two columns: Table, TargetID. These pair of values points to another arbitrary table, which has at an integer autoincrement primary key. The rest of the columns in this imaginary table is totally up to the user.

So here is where the wacky stuff happens. In the templates such as links.html or detailed_links.html, you'd have a new function call. This call would generate the html for the display of the extra information this other table carries. Something like <%Plugins::MyPlugin::generate_associated_content%> would suffice.

You'll also have to create an admin interface that will allow you to associate template files to tables, so the generator knows what template files to pump the data through. As well, you'll have to subclass all the new tables to change data manip screens so that they'll have all the Links fields and specific table fields and properly handle interactions with both tables.

I'm not sure how searching should work, but hey, this is not my plugin. Wink

Anyways, just an idea

Last edited by:

Aki: Jul 17, 2002, 2:21 AM
Subject Author Views Date
Thread Plugin Suggestion Aki 11510 Jul 17, 2002, 2:11 AM
Thread Re: [Aki] Plugin Suggestion
yogi 11364 Jul 17, 2002, 2:38 AM
Thread Re: [yogi] Plugin Suggestion
Aki 11374 Jul 17, 2002, 2:50 AM
Thread Re: [Aki] Plugin Suggestion
yogi 11325 Jul 17, 2002, 3:32 AM
Thread Re: [yogi] Plugin Suggestion
Aki 11329 Jul 17, 2002, 4:57 AM
Thread Re: [Aki] Plugin Suggestion
yogi 11338 Jul 17, 2002, 5:36 AM
Post Re: [yogi] Plugin Suggestion
Aki 11325 Jul 17, 2002, 5:41 AM
Post Re: [Aki] Plugin Suggestion
pugdog 11260 Jul 17, 2002, 8:12 AM
Thread Re: [Aki] Plugin Suggestion
doom 11175 Sep 30, 2002, 8:49 AM
Thread Re: [doom] Plugin Suggestion
pugdog 11123 Sep 30, 2002, 2:34 PM
Thread Re: [pugdog] Plugin Suggestion
doom 11094 Oct 1, 2002, 9:24 AM
Thread Re: [doom] Plugin Suggestion
katabd 11250 Oct 1, 2002, 7:21 PM
Thread Re: [katabd] Plugin Suggestion
tga 10833 Mar 15, 2005, 2:32 AM
Thread Re: [tga] Plugin Suggestion
pugdog 10791 Mar 15, 2005, 7:14 AM
Thread Re: [pugdog] Plugin Suggestion
webmaster33 10855 Mar 16, 2005, 2:36 AM
Thread Re: [webmaster33] Plugin Suggestion
pugdog 10780 Mar 16, 2005, 1:02 PM
Post Re: [pugdog] Plugin Suggestion
webmaster33 10704 Mar 16, 2005, 3:40 PM
Thread Re: [Aki] Plugin Suggestion
pugdog 11307 Jul 17, 2002, 7:53 AM
Thread Re: [pugdog] Plugin Suggestion
afinlr 11375 Jul 17, 2002, 8:19 AM
Post Re: [afinlr] Plugin Suggestion
yogi 11384 Jul 17, 2002, 8:31 AM
Thread Re: [Aki] Plugin Suggestion
pugdog 11323 Jul 17, 2002, 8:26 AM
Thread Re: [pugdog] Plugin Suggestion
pugdog 11274 Jul 17, 2002, 8:33 AM
Post Re: [pugdog] Plugin Suggestion
pugdog 11201 Jul 25, 2002, 7:30 PM