How to create a page(w code, don't use configure interface)

I don’t know how to use the hook yet, but I would like to create a page for this button, and link to it.
button “Revistas”

sorry for my english

As you note in your subject, the easiest way to do this is with a Custom Navigation Menu item, configured within the interface. This works if you want to have a page of static content.

If you want the new page to be interactive, you will need to implement a new page handler, which routes to a controller, which performs some action(s), such as displaying templates.

There is an example of how to do this with a plugin in the Plugin Development Guide:

If you don’t want to write a plugin, but want to instead maintain a local code change in the software (we recommend the plugin approach instead), you can follow the same practice in the code itself:

1 Like