Gossamer Forum
Home : Products : Links 2.0 : Customization :

Title and Meta Desc for under pages

Quote Reply
Title and Meta Desc for under pages
Hello,
I have sub pages from Main category as follows:
more2.html more3.html more4.html. But All Pages have same page title and meta tags.
Pages are not listed in the search engines correctly.
Have you got any ideas about how to new under pages creating with for each page own meta titles.

Best Ragrds
all4u
Quote Reply
Re: [all4u] Title and Meta Desc for under pages In reply to
In nph-build.cgi, sub build_category_pages, add the red:

Code:

# If we are spanning pages, we grab the first x number of links and build
# the main index page. We set $numlinks to the remaining links, and we remove
# the links from the list.
$numlinks = ($#{$links{$cat}} + 1) / ($#db_cols + 1);
$next = $prev = $links = "";
if (($numlinks > $build_links_per_page) && $build_span_pages) {
$page_num = 2;
$next = $url . "more$page_num$build_extension";
$category_name = $cat . "more$page_num$build_extension";
for ($i = 0; $i < $build_links_per_page; $i++) {
%tmp = &array_to_hash ($i, @{$links{$cat}});
$links .= &site_html_link (%tmp);
}
@{$links{$cat}} = @{$links{$cat}}[(($#db_cols+1)*$build_links_per_page) .. $#{$links{$cat}}];
$numlinks = ($#{$links{$cat}}+1) / ($#db_cols + 1);
}


That should make the page title the same as the link name. You can change it if you prefer...
Not tested, but should work. Laugh


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Title and Meta Desc for under pages In reply to
Unsurethanks but, it doesnt work.
Quote Reply
Re: [all4u] Title and Meta Desc for under pages In reply to
Well, in the same sub, try...

$title_linked = &build_linked_title ("$cat/Page_$page_num/");
$title = &build_unlinked_title ("$cat/Page_$page_num/");
$category_name = "$cat/Page_$page_num/";


Leonard
aka PerlFlunkie