Giter Club home page Giter Club logo

weeaar_googlesitemap's Introduction

Inofficial Fork of weeaar_googlesitemap

based on official release 0.4.3 from TER: http://typo3.org/extensions/repository/view/weeaar_googlesitemap

New Features

  • tt_news single page views can now be optionally kept on sitemap.xml output (e.g. for dual-mode pages which contain both a LIST and SINGLE view on the same page and toggle the active tt_news mode based upon parameters passed on URL). Can be used by setting new parameter tt_news.single_page.*.keepListedAsPage = 1. See changeset cbe4a3fe159b09912fe777ec7ad618ce8a9be918 for details.
  • tt_news entries can optionally be filtered by archived/non-archived state. If filtering is desired, set archive_mode = archived or archive_mode = non-archived on a single view configuration
  • tt_news records can be searched recursively from the given pid_list by setting recursive = <recursion depth> on the single_page configuration
  • news schema is no longer active by default as it is intended for actual news like magazine articles or press releases which if not the case for every tt_news article
    • enabled via news_schema = 1 on single_page configuration
    • configuration allows setting all tags as described by Google:
      • news_schema.max_age_days (optional) - Google requests to list only news which have an age of less than 2 days; you may override that limit using this setting
        • Note: News will still be listed as regular pages after if the maximum age has been exceeded, they just won't get the additional news schema.
      • news_schema.publication.name (required) - the publication's name (magazine name, news publisher name, organization, not the author)
      • news_schema.publication.language (required) - the language used by the publication as default
      • news_schema.publication.language.<sys_language_uid> = <language name> (optional) - mapping individual sys_language_uids to language names (BE record UID, not FE L-parameter!)
      • news_schema.keywords_default (optional) - keywords to use if news article doesn't set any (may be overriden by saving spaces to news); keywords should be Google news topics
      • news_schema.keywords_override (optional) - keywords to use regardless of default or news values; keywords should be Google news topics
      • news_schema.access (optional) - subscription/registration required? assumed free if missing; see Google help for details
      • news_schema.genres (optional) - type of content; see Google help for details
      • news_schema.stock_tickers (optional) - related stock exchanges & ticker IDs; see Google help for details
    • example:
single_page.1 {
    news_schema = 1
    news_schema {
        publication {
            name = Example Magazine
            language = en
            language {
                0 = en
                1 = de
            }
        }
        access = Registration
        genres = UserGenerated
        keywords_default = Health
        #keywords_override = Health
        #stock_tickers = TEST:A
        max_age_days = 5
    }
}

Fixes

  • fix for security bulletin TYPO3-EXT-SA-2014-010; credits to initiator of fork cab services ag
  • processing of translated tt_news entries
  • news schema now contains all required tags; see new features above
  • runs under TYPO3 6.2

weeaar_googlesitemap's People

Watchers

James Cloos avatar

weeaar_googlesitemap's Issues

news extension is missing required tags

tt_news articles are being annotated with additional information using "news" namespace. However, Google Webmaster Tools report errors while parsing sitemap.xml due to missing required tags:

Errors
Missing XML tag
This required tag is missing. Please add it and resubmit.

Parent tag: news
Tag: title

Parent tag: news
Tag: publication

Should be implemented according to specification.

disabled translations are being listed

If option "Behaviour/Hide page if no translation for current language exists" on default translation and "Access/Disable" on translated page properties are both enabled, generated sitemap.xml still lists the translated pages which are inaccessible with a 404 response.

The URL is also wrong (may be related to RealURL), using the default translation's page title with another language tag.

unable to set HTTPS

domain parameter always gets prefixed with http://, does not check for other protocols (such as HTTPS) already prefixed, resulting in http://https://www.mydomain.com

last modification only refers to page properties/translation, not content

sitemap.xml should show the timestamp of last modification to a page's contents. weeaar_googlesitemap only queries the modification timestamp of page properties or page translation, however.

This is bad as pages may appear stale for a long period of time although they are not. The timestamp should instead check all (visible?) records on a page. Note that may not be sufficient if page content is generated via a plugin such as tt_news as not all records may reside on the page being queried. We should therefore allow an override either by calling some user function or by providing a pre-defined lookup/select for records on other pages (tt_news needs to take categories and languages into account as well)...

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.