Customizing SMF > SMF Coding Discussion

Paginate titles

<< < (2/2)

MrPhil:
If this is your existing code:

--- Code: --- <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';
--- End code ---

change it to

--- Code: --- <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'],
        ($context['page_info']['current_page'] > 1)? ' - Page ' . $context['page_info']['current_page']: '',
        '</title>';
--- End code ---

Tomy Tran:

--- Quote from: MrPhil on April 09, 2012, 05:57:18 PM ---If this is your existing code:

--- Code: --- <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'], '</title>';
--- End code ---

change it to

--- Code: --- <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
<title>', $context['page_title_html_safe'],
        ($context['page_info']['current_page'] > 1)? ' - Page ' . $context['page_info']['current_page']: '',
        '</title>';
--- End code ---

--- End quote ---

Good solution.

BGH:
Sorry for not answering with much details, but the solution provided by MrPhil worked out the box for me.

Thank you all! :)

Navigation

[0] Message Index

[*] Previous page

Go to full version