Sitemap Generator
generate a google sitemap XML file
sitemap-generator
Generate your sitemap with navigation, custom dynamic pages and static sites.
Required Laminas Components
- laminas/laminas-xml
Required Laminas Starter Kit Components
On-line Generator
Setup Instructions
- Ensure you have module called: %module% in your application.
- Create a PHP file called %viewFolderName%Controller.php in: [root]/module/%module%/src/Controller/ and paste the contents from above.
- Inject content of 'controllers' -> 'factories' and 'router' into pre-existing sections in the module/%module%/config/module.config.php file.
- Copy index.phtml file into folder called: 'module/%module%/view/%viewFolderName%/'.
Throubleshooting
Make sure your application contains all the required plugins from "Required Laminas Components" and "Required Laminas Kit Components".
You can learn how to add missing dependencies in this video:
You can learn how to add missing dependencies in this video:
Parameters
Param name | Type | Default value | Description |
---|---|---|---|
name | text | NULL | Sets a sitemap name |
module | text | NULL | Sets a module name |
menu_name | text | NULL | Sets a menu name |
CLI Usage
"vendor/bin/laminas.bat" mvc:sitemap --module=<moduleName> <sitemap_name> <menu_name>
Example Usage
"vendor/bin/laminas.bat" mvc:sitemap --module=Application Sitemap MyMenu