Code Monkey home page Code Monkey logo

craft3-plugin-sitemap's Introduction

XML-sitemap plugin for Craft CMS 3

Craft 3 plugin that provides an easy way to enable and manage a XML sitemap for search engines like Google and Bing

Screenshot

Using the XML-sitemap plugin

After the installation, you can find the plugin in the settings section of the Control Panel. You can enable and set the settings per entries section and enable categories in the sitemap.

After saving the desired settings, you can submit the xml url (your site url)/sitemap.xml to the searchengines.

Sitemap structure

The sitemap is compatible with the sitemaps.org protocol.

In version 1.0.9 we added support for alternate languages to give Google a better chance to point to the correct page.

  <url>
    <loc>https://othersite.local/news/news-item-1</loc>
    <priority>0.5</priority>
    <changefreq>weekly</changefreq>
    <lastmod>2018-02-21T21:09:47+01:00</lastmod>
    <xhtml:link rel="alternate" hreflang="en-gb" href="http://dev.craft/news/news-item-1"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://othersite.local/news/news-item-1"/>
    <xhtml:link rel="alternate" hreflang="nl-nl" href="https://othersite.local/nl/news/news-item-1"/>
    <xhtml:link rel="alternate" hreflang="de-ch" href="https://othersite.local/ch/nachrichten/news-item-1"/>
  </url>

Requirements

This plugin requires Craft CMS 3.2 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require dolphiq/sitemap
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for XML sitemap.

XML-sitemap Roadmap

  • Settings to enable /disable and split the entries in the xml on a site basis (for multi site setup)
  • User (custom) url entry section
  • Provide a way hide entries from the list
  • Add a Ping for search engines
  • Display the last 20 visits from search engines

Contributors & Developers

Johan Zandstra - [email protected] Brought to you by Dolphiq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.