/priv/sites/zotonicwww/dispatch/dispatch

http://github.com/zotonic/zotonic · #! · 28 lines · 23 code · 5 blank · 0 comment · 0 complexity · ea056cacaa879e309e374be2f08c40b3 MD5 · raw file

  1. %% Dispatch rules for mod_zotonic.
  2. [
  3. {home, [], resource_page, [ {template, "home.tpl"}, {id, page_home} ]},
  4. {features, ["features"], resource_page, [ {template, "features.tpl"}, {id, page_features} ]},
  5. {team, ["zotonic-team"], resource_page, [ { template, "zotonic_team.tpl"}, {id, zotonic_team} ]},
  6. {article, ["blog", id, slug], resource_page, [ {template, {cat, "page.tpl"}} ]},
  7. {collection,["collection", id], resource_page, [ {template, "collection.tpl"} ]},
  8. {collection,["collection", id, slug], resource_page, [ {template, "collection.tpl"} ]},
  9. {manual, ["manual", id], resource_page, [ {template, "manual.tpl"} ]},
  10. {manual, ["manual", id, slug], resource_page, [ {template, "manual.tpl"} ]},
  11. {category, ["category", id], resource_page, [ {template, "category.tpl"} ]},
  12. {category, ["category", id, slug], resource_page, [ {template, "category.tpl"} ]},
  13. {documentation, ["documentation", id], resource_page, [ {template, "documentation.tpl"} ]},
  14. {documentation, ["documentation", id, slug], resource_page, [ {template, "documentation.tpl"} ]},
  15. {gallery, ["gallery", id], resource_page, [ {template, "gallery.tpl"} ]},
  16. {gallery, ["gallery", id, slug], resource_page, [ {template, "gallery.tpl"} ]},
  17. %% Search results
  18. {search, ["search"], resource_template, [ {template, "search.tpl"} ]},
  19. {archives_y,["archives", year], resource_template, [ {template, "archives.tpl"}, {cat, article} ]},
  20. {archives_m,["archives", year, month], resource_template, [ {template, "archives.tpl"}, {cat, article} ]},
  21. %% Generated edocs
  22. {edoc, ["edoc", '*'], resource_static_pages, [ {root, "edoc"} ]}
  23. ].