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

Title Tag for page two, three ...

Quote Reply
Title Tag for page two, three ...
Hi Andy,
I'm using this code in category.html for my title tag
Code:
<head>
<title><%site_title%> | <%category_name2($category_name)%></title>
<%include include_common_head.html%>

That's the global
Code:
sub {
#category_name2
my $category_name = shift;
$category_name =~ s,/, - ,g;
return $category_name;
}

At the moment it shows the same title on page one and page two or three of a category.
Would be great to have an option to show
page title - page two
page title - page three

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Title Tag for page two, three ... In reply to
Hi,

I think you can do it via <%paging.page_num%>

Just to be sure, try:

<%DUMP paging%>

..and show me the output.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Title Tag for page two, three ... In reply to
That's the output :-(
Code:
Dumped value of 'paging': undef;

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Title Tag for page two, three ... In reply to
Even on a category that has more than one page? Crazy

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Title Tag for page two, three ... In reply to
No there it shows
Code:
Dumped value of 'paging': {
'current_page' => '1',
'max_hits' => '25',
'num_hits' => '279',
'page' => 'Unterrichtsmaterial/Arbeitsblaetter/Sachunterricht/',
'page_format' => '1'
};

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Title Tag for page two, three ... In reply to
Ok, try this then:

<%if page.current_page%> - Page <%paging.current_page%><%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Title Tag for page two, three ... In reply to
Andy wrote:
Ok, try this then:

<%if page.current_page%> - Page <%paging.current_page%><%endif%>

Cheers

Hmm, this code has no output Frown

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Title Tag for page two, three ... In reply to
Sorry, long day. Should be:

<%if paging.current_page%> - Page <%paging.current_page%><%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Title Tag for page two, three ... In reply to
That's it, works perfect.
Now google hopefully stops telling me, that there are duplicate pages :-)
Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Title Tag for page two, three ... In reply to
Glad to hear it :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates