Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Detail Pages and Titles

Quote Reply
Detail Pages and Titles
Hello

I am trying to get the detail page to have the correct title But is creates the tree.

So if the detail page is in the path it creates the title

Articles: Article 1

But the page should just be titled

Article 1.

I am using the <%title%> tag for this.

Is there another tag I should be using?

Cheers
Quote Reply
Re: [ukseo] Detail Pages and Titles In reply to
Hi. You should be able to use;

<%category_short%>

...or;

<%Name%>

Hope that helps.

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] Detail Pages and Titles In reply to
Cheers Andy

But they both produce

Unknown Tag: 'Name'

Anything else?
Quote Reply
Re: [ukseo] Detail Pages and Titles In reply to
Mmm.. try this in detailed.html;

Code:
sub {
my $ID = $_[0];
my $table = $DB->table ('CatLinks','Category');
$table->select_options('LIMIT 1');

my $name = $table->select ( ['Name'], { LinkID => $ID } )->fetchrow;
return $name;
}

..and call with;

<%global_name($ID)%>

Hope that helps.

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] Detail Pages and Titles In reply to
Andy

Do you mean put that sub in the template globals and then use the

<%global_name($ID)%>

To call the title

Should I also call the sub global_name ?

Cheers
Quote Reply
Re: [ukseo] Detail Pages and Titles In reply to
Quote:
Do you mean put that sub in the template globals and then use the

<%global_name($ID)%>

Yup.

Quote:
Should I also call the sub global_name ?

No. Call it whatever you want :)

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] Detail Pages and Titles In reply to
Sorry to be a dummy but...

I get the following error now

Error: Variable 'global_name' is not a code reference

Unsure
Quote Reply
Re: [ukseo] Detail Pages and Titles In reply to
What did you call it in Build > Template Globals ?

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] Detail Pages and Titles In reply to
Andy

I called it:

detail_title

I do have a rewrite_url sub in there as well. Could there be aconflict in that it has a

my $ID = shift;
my $Title = shift;

Could that same ID be a problem?

Regards

Last edited by:

ukseo: Sep 8, 2004, 8:08 AM
Quote Reply
Re: [ukseo] Detail Pages and Titles In reply to
Can you email me over globals.txt, from your admin/templates/default(may be different)/local folder? That global should work fine :/ Other globals won't cause it to conflict.

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] Detail Pages and Titles In reply to
For those of you wondering, this was nothing to do with the globals.tx, it was me naming the tag wrong.

I had called the sub "detailed_title" and as such the <%tag%> should have been called <%detailed_title(ID)%>

Cheers