This module adds the dynamic generation of the robot.txt file to a tool and per site
MelisCmsSiteRobot provides a functionality to add robots.txt on each domain.
These instructions will get you a copy of the project up and running on your machine.
The following modules need to be installed to have Melis newsletter module run:
- Melis engine
Run the composer command:
composer require melisplatform/melis-cms-site-robot
Database model is accessible via the MySQL Workbench file:
Database will be installed through composer and its hooks.
In case of problems, SQL files are located here:
- Melis CMS site robot tool
- Melis CMS site robot service
Provides the user the ability to access and manage the Robots.txt of every domain.
- Using the service to retrieve Robots.txt data for each domain:
// Get MelisEngineTableSiteDomain service $table = $this->getServiceLocator()->get('MelisEngineTableSiteDomain'); // Get all data from site domain table $data = $table->getData($searchValue, $searchableCols, $selColOrder, $orderDirection, $start, $length)->toArray();
// Get MelisEngineTableRobot service $robotTable = $this->getServiceLocator()->get('MelisEngineTableRobot'); //Get robots.txt contents and data for each domain $robotData = (array) $robotTable->getEntryByField('robot_site_domain', $domainName)->current();
- Melis Technology - www.melistechnology.com
See also the list of contributors who participated in this project.
This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details