Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Clickable category links in admin forms

Quote Reply
Clickable category links in admin forms
Hello ...
I'm wondering if anyone knows how to modify admin link forms so that category lists become clickable links.
For example: Admin > Database > Links: Search Results has a small table at the bottom listing the categories in which the links appears. I would like to be able to click on the category names to open the category pages (either static, dynamic or browser mode) to compare what else is there.
It's what we get in the Category Browser, but it would be really helpful to have it in the Database forms as well.

This is the sub in Link.pm ...
Code:
sub disp_categories {
# -------------------------------------------------------------------
# Displays a list of categories for the form.
#
my $self = shift;
my $id = shift;
my $cat = $self->{db}->get_categories ($id);
my $out = '';
foreach my $id (sort { lc $cat->{$a} cmp lc $cat->{$b} } keys %$cat) {
$out .= "$id: $cat->{$id}<br>\n";
}
return $out;
}
... need to add something to $out .= "$id: $cat->{$id} but I can't figure out what.
Quote Reply
Re: [YoYoYoYo] Clickable category links in admin forms In reply to
You couyld use page.php, which works off just the category ID. For example;

page.php?do=page&cat_id=1

So you could use;

Code:
$out .= "$id: <a href=\"http://www.yoursite.com/links/page.php?do=page&cat_id=$id\">$cat->{$id}</a><br>\n";

Not definate this will work, but its a pretty educated guess :D

Let me know how it goes Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Clickable category links in admin forms In reply to
DEFINITE

as in

INFINITE



Quote Reply
Re: [Donald Rumsfeld] Clickable category links in admin forms In reply to
You can tell I don't use their build in spell checker cant you ;)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Clickable category links in admin forms In reply to
In Reply To:
Let me know how it goes
Graet idae -- it werks brilianttly.
Wi cannt i get idaeas lik that?
Quote Reply
Re: [YoYoYoYo] Clickable category links in admin forms In reply to
LOL..glad to here it Crazy

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!