This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

TOC - Page Number and Page


avatar
mishima 145
From: -
TOC - Page Number and Page

Hello,

Our TOC for articles currently just says TABLE OF CONTENTS after you use it to navigate to a page, so you never know which page you are on by the TOC.

Could this be changed to the page that the reader is currently on?

Also, how would I add page numbers to sit beside the title of the pages inside the TOC.

At the moment it says:

Introduction


But I would like it to say:

Page 1: Introduction


Thanks for your help!
Mishima

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: TOC - Page Number and Page
avatar
Editor
0
From: -
Add the following PHP part to the template:

$selected_page = ($insert[ 'articlepage_page' ] == $insert['articlepage_toc_page']) ? " selected=\"selected\"" : "";


and change the HTML part to:

<option value="{$insert['articlepage_toc_page']}"{$selected_page}>Page {$insert['articlepage_toc_page']}: {$insert['articlepage_toc_title']}</option>
1 Re: TOC - Page Number and Page
avatar
OP 145
From: -
Excellent thanks Philipp works great.

How about the 'TABLE OF CONTENTS' change? Basically, whatever page you are on it says 'TABLE OF CONTENTS' and from this you don't know what page you are actually on. Could this be changed to whatever page you are actually on?

Thanks
1 Re: TOC - Page Number and Page
avatar
Editor
0
From: -
Edit the template articles_pages_toc and replace:

<option value="{$insert['articlepage_toc_page']}">{$insert['articlepage_toc_title']}</option>


with:

<option value="{$insert['articlepage_toc_page']}">Page {$insert['articlepage_toc_page']}: {$insert['articlepage_toc_title']}</option>

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.