Git Product home page Git Product logo

xrowmetadata's Introduction

Installation:

After this the extension has been installed. You should be able to generate the sitemap 
using the runcronjobs.php script. See "googlesitemaps.ini" for more configuration options.

    # php runcronjobs.php googlesitemaps
    Running cronjob part 'googlesitemaps'
    Running extension/xrowmetadata/cronjobs/generate.php
    Generating Sitemap...

    Sitemap has been generated!

This will create a file for every siteaccess within your eZ Publish root directory. These files are usually named "sitemap_access.xml", but you can change that in the INI file.

Please ensure that your Apache rewrite rules permit access to the XML File. This can be done by adding the following line to your .htaccess or Apache configuration file:

    RewriteRule ^sitemap[^/]*\.xml - [L]

Finally you need to attached the Metadatatype to some of your content classes and add the following code to you head of your HTML document.

{def $meta = metadata( $module_result.node_id ) }
{if $meta}
    {if $meta.title}
        <title>{$meta.title|wash}</title>
    {/if}
    {if $meta.keywords}
        <meta name="keywords" content="{$meta.keywords|wash}" />
    {/if}
    {if $meta.description}
        <meta name="description" content="{$meta.description|wash}" />
    {/if}
{else} 
    <title>{$site_title}</title>
    {foreach $site.meta as $key => $item }
    <meta name="{$key|wash}" content="{$item|wash}" />
    {/foreach}
{/if}

Register sitemap in robots.txt:

Option 1.)
    Add this to the end of the "robots.txt" file
  
    ----------------
    Sitemap: http://www.example.com/sitemaps/index
    ----------------
Option 2.)
    Add this to the end of the ".htaccess" file
    ----------------
    RewriteRule ^robots\.txt$ - [C]
    RewriteRule .* http://%{HTTP_HOST}/sitemaps/robots [P]
    
    RewriteRule ^sitemap\.xml$ - [C]
    RewriteRule .* http://%{HTTP_HOST}/sitemaps/index [P]
    ----------------

Troubleshooting & support
=========================
Send email to service [at] xrow [dot] de


xrowmetadata's People

Contributors

bchoquet-heliopsis avatar matthieucneude avatar

Watchers

 avatar

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.