View In Browser Archive display

I need to limit the number of archive items that are displayed in the View Browser to the last three newsletters.

Is that possible? I have tried adding define(‘MAX_ARCHIVE_DISPLAY’, 3); in the Config file, but that does not do anything.

Using PHPList 3.6.15

What am I missing?

@Seahawk This is explained in the plugin documentation, plugin:viewinbrowser [phpList Resources]

@duncanc Thank you for your response. I have checked the documentation. I have changed the The number of campaigns to display on each archive page (between 5 and 50) to 5, but I need to limit this to only viewing the last three messages sent.

I do not find such information in the documentation unless I misread it.

Maybe I must delete all the old irrelevant emails.

@Seahawk

You can reduce the minimum number of campaigns to display from 5 to 3 by changing these lines in the file lists/admin/plugins/ViewBrowserPlugin.php

line 229

'description' => s('The number of campaigns to display on each archive page (between %d and %d)', 5, 50),

and line 232

'min' => 5,

Change 5 to 3.

It is not possible to display only the last 3 campaigns and no more, i.e. no paging back from the first page. That kind of goes against the idea of the plugin.
You could delete older campaigns but then you would lose the statistics for those campaigns, and any links in emails to old campaigns would no longer work.