Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
different info on detailed page depending on FatherID
(Page 2 of 2)
1 of 2
2 of 2
View All
1
2
Previous Thread
Next Thread
Print Thread
View Threaded
Sep 9, 2003, 7:41 AM
rsahertian
User
(142 posts)
Sep 9, 2003, 7:41 AM
Post #26 of 33
Views: 4190
Shortcut
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!
thanks,
Ron
Sep 9, 2003, 7:44 AM
Andy
Veteran
/ Moderator
(18441 posts)
Sep 9, 2003, 7:44 AM
Post #27 of 33
Views: 4254
Shortcut
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!
Sep 9, 2003, 7:52 AM
rsahertian
User
(142 posts)
Sep 9, 2003, 7:52 AM
Post #28 of 33
Views: 4140
Shortcut
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
Sep 9, 2003, 7:54 AM
Andy
Veteran
/ Moderator
(18441 posts)
Sep 9, 2003, 7:54 AM
Post #29 of 33
Views: 4177
Shortcut
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!
Sep 9, 2003, 7:57 AM
rsahertian
User
(142 posts)
Sep 9, 2003, 7:57 AM
Post #30 of 33
Views: 4161
Shortcut
Re: [Andy] different info on detailed page depending on FatherID
In reply to
Yes, in this case, but how do we check our FatherID?
Sep 9, 2003, 8:01 AM
Andy
Veteran
/ Moderator
(18441 posts)
Sep 9, 2003, 8:01 AM
Post #31 of 33
Views: 4227
Shortcut
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!
Sep 9, 2003, 8:16 AM
rsahertian
User
(142 posts)
Sep 9, 2003, 8:16 AM
Post #32 of 33
Views: 4178
Shortcut
Re: [Andy] different info on detailed page depending on FatherID
In reply to
Do wizards exists???
many thanks........
all ok!!!!!!!!!!!!!!!!!!
Sep 9, 2003, 8:21 AM
Andy
Veteran
/ Moderator
(18441 posts)
Sep 9, 2003, 8:21 AM
Post #33 of 33
Views: 4092
Shortcut
Re: [rsahertian] different info on detailed page depending on FatherID
In reply to
>>>Do wizards exists??? <<<
Huh?
>>>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!
1 of 2
2 of 2
View All
1
2
Previous Thread
Next Thread
Print Thread
View Threaded