Is there any way to include the title_linked or "trail" within rate.cgi. The properties do not allow it, but is there a mod rewrite for this?
Aug 18, 2004, 7:34 AM
Veteran / Moderator (18436 posts)
Aug 18, 2004, 7:34 AM
Post #2 of 4
Views: 1749
Hi. What would you want it to look like? Something like;
Home : Category : Sub Category : Rate : TITLE
?
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!
Home : Category : Sub Category : Rate : TITLE
?
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 11, 2004, 4:13 AM
Veteran (1921 posts)
Sep 11, 2004, 4:13 AM
Post #4 of 4
Views: 1731
You could use something like this:
sub {
# Displays the title linked on Rate page.
my $id=shift;
my $title=shift;
my $table = $DB->table('CatLinks','Category');
$table->select_options('LIMIT 1');
my $fullname = $table->select ( ['Full_Name'],{ LinkID=> $id})->fetchrow_array;
my $fulltitle="$fullname/$title";
return Links::Build::build('title_linked',$fulltitle);
}
Note that for links in multiple categories it just takes the first category it finds in the CatLinks table.
<%globalname($ID,$Title)%>
sub {
# Displays the title linked on Rate page.
my $id=shift;
my $title=shift;
my $table = $DB->table('CatLinks','Category');
$table->select_options('LIMIT 1');
my $fullname = $table->select ( ['Full_Name'],{ LinkID=> $id})->fetchrow_array;
my $fulltitle="$fullname/$title";
return Links::Build::build('title_linked',$fulltitle);
}
Note that for links in multiple categories it just takes the first category it finds in the CatLinks table.
<%globalname($ID,$Title)%>