# Standard Admin Pages

The next generation `Xoops\Module\Admin` makes a few changes to the module administration class methods. With [Xmf\Module\Admin](/xmf-cookbook/reference/module/admin.md) you can begin using the new methods now for forward compatibility.

Here are examples of the standard index and about pages.

## index.php

An example index page in the current 2.5 format:

```php
$indexAdmin = new ModuleAdmin();

echo $indexAdmin->addNavigation('index.php');
echo $indexAdmin->renderIndex();
```

Forward compatible version using XMF:

```php
$indexAdmin = \Xmf\Module\Admin::getInstance();

$indexAdmin->displayNavigation('index.php');
$indexAdmin->displayIndex();
```

## about.php

An example about page in the current 2.5 format:

```php
$aboutAdmin = new ModuleAdmin();

echo $aboutAdmin->addNavigation('about.php');
echo $aboutAdmin->renderAbout('6XYZRW5DR3VTJ', false);
```

Migration ready using XMF:

```php
$aboutAdmin = \Xmf\Module\Admin::getInstance();

$aboutAdmin->displayNavigation('about.php');
\Xmf\Module\Admin::setPaypal('6XYZRW5DR3VTJ');
$aboutAdmin->displayAbout(false);
```

Note the setPaypal() call. In the next generation, PayPal information is set in xoops\_version.php instead as a parameter to renderAbout(). The call satisfies the requirements in 2.5 systems, and will cause no harm in later versions, but accomplish nothing.

Use these examples and apply the concepts to any other administration scripts your module uses to make them forward compatible, too.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xmf-cookbook/recipes/module-admin-pages/standard-admin-pages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
