Skip to content

artjom/oxid-sitemap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Sitemap Exporter

Build Status

improved Google Sitemap Exporter for Oxid eShop, based on https://github.com/OXIDprojects/google_sitemap

it embraces common code best practices:

  • composer
  • semver
  • tests
  • dependency injection
  • namespaces

Requirements

  • Oxid eShop >= 6
  • PHP >= 7

Installation

  • run 'composer require ivoba-oxid/oxid-sitemap'
  • copy 'sitemap_xml.php' from /vendor/ivoba-oxid/oxid-sitemap/copy_this to /source/ directory
  • edit sitemap_xml.php to your needs, if necessary
  • take care that your target file is writeable by the webserver
  • create a cronjob that calls http://yourshop.biz/sitemap_xml.php

Usage

call http://yourshop.biz/sitemap_xml.php

if you need lower urls set the 3rd param to true: SiteMapGenerator($config, $queries, true)

Note: This module does not need to be enabled. It works right away.
Instead of "oxideshop-module" we call this type "oxideshop-addon" since it doesnt need not be copied to source directory.

Todo

  • password protect generate page
  • compress sitemap
  • option to split sitemap, create sitemap_split_xml.php

License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

Sitemap module for oxid eShop

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%