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

different info on detailed page depending on FatherID

(Page 2 of 2)
> >
Quote Reply
Re: [Andy] different info on detailed page depending on FatherID In reply to
Andy

Seems to be a problem for me and it looks so easy with that great example on the detailed page!
UnsureUnsure

thanks,
Ron
Quote Reply
Re: [rsahertian] different info on detailed page depending on FatherID In reply to
What URL are you using to call add.cgi? Are you assigning the category in it?

i.e.

add.cgi?catid=12345

?

Cheers

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] different info on detailed page depending on FatherID In reply to
Andy,

I use in my test-environment:

http://pc5815/cgi-bin/lsql2/add.cgi?ID=9&d=1

thanks,
Ron
Quote Reply
Re: [rsahertian] different info on detailed page depending on FatherID In reply to
Is ID 9 the category they are trying to add to?

Cheers

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] different info on detailed page depending on FatherID In reply to
Yes, in this case, but how do we check our FatherID?
Quote Reply
Re: [rsahertian] different info on detailed page depending on FatherID In reply to
Give this global a go (needs to be a new one, don't overwrite the old one);

Code:
sub {

my $ID = $_[0];

my $table = $DB->table('Category');
my $sth = $table->select( { ID => $ID } ) || return "Error: $GT::SQL::error";

my $FatherID;
while (my $hit = $sth->fetchrow_hashref) {
$FatherID = $hit->{FatherID};
}


return { FatherID => $FatherID }

}

Call it as you did with the old one.. i.e;

<%global_name($ID)%>

Cheers

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] different info on detailed page depending on FatherID In reply to
Do wizards exists???

many thanks........
all ok!!!!!!!!!!!!!!!!!!
SlySlySly
Quote Reply
Re: [rsahertian] different info on detailed page depending on FatherID In reply to
>>>Do wizards exists??? <<<

Huh? Laugh

>>>all ok!!!!!!!!!!!!!!!!!! <<<

Glad to hear it.

Cheers

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!
> >