sonata_seo.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. sonata_seo:
  2. encoding: UTF-8
  3. page:
  4. default: sonata.seo.page.default
  5. title: Chamilo
  6. metas:
  7. name:
  8. keywords: 'chamilo e-learning'
  9. description: 'chamilo e-learning'
  10. robots: index, follow
  11. viewport: width=device-width,initial-scale=1
  12. apple-mobile-web-app-capable: yes
  13. author: chamilo
  14. Generator: Chamilo 2
  15. property:
  16. # Facebook application settings
  17. #'fb:app_id': XXXXXX
  18. #'fb:admins': admin1, admin2
  19. # Open Graph information
  20. # see http://developers.facebook.com/docs/opengraphprotocol/#types or http://ogp.me/
  21. # 'og:site_name': %sonata_admin.title%
  22. # 'og:description': %sonata_admin.title%
  23. http-equiv:
  24. # 'Content-Type': text/html; charset=utf-8
  25. #'X-Ua-Compatible': IE=EmulateIE7
  26. head:
  27. 'xmlns': http://www.w3.org/1999/xhtml
  28. # sitemap:
  29. # services:
  30. # - sonata.product.seo_iterator
  31. # doctrine_orm:
  32. # # media
  33. # - { connection: doctrine.dbal.default_connection, route: sonata_media_view, parameters: {id: null}, query: "SELECT id, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM media__media WHERE enabled = true" }
  34. # # blog post
  35. # - { connection: doctrine.dbal.default_connection, route: sonata_news_view, parameters: {permalink: null}, query: "SELECT CONCAT_WS('/', YEAR(created_at), MONTH(created_at), DAY(created_at), slug) as permalink , updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM news__post WHERE enabled = 1 AND (publication_date_start IS NULL OR publication_date_start <= NOW())" }
  36. # # page - works only for one site, please adapt the code if required
  37. # - { connection: doctrine.dbal.default_connection, route: page_slug, parameters: {path: null}, query: "SELECT url as path, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM page__snapshot WHERE route_name = 'page_slug' AND enabled = 1 AND (publication_date_start IS NULL OR publication_date_start <= NOW())" }
  38. # # product categories
  39. # - { connection: doctrine.dbal.default_connection, route: sonata_catalog_category, parameters: {category_id: null, category_slug: null}, query: "SELECT id as category_id, slug as category_slug, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM classification__category WHERE enabled = true" }
  40. # # products
  41. # - { connection: doctrine.dbal.default_connection, route: sonata_product_view, parameters: {productId: null, slug: null}, query: "SELECT id as productId, slug, updated_at as lastmod, 'weekly' as changefreq, '0.5' as prioriy FROM product__product WHERE enabled = true" }