0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/unit/services
kirrg001 a1b55509df Dynamic Routing Beta: collection name behaviour
refs #9601

Example:

```
collections:
  /podcast/:
    permalink: /{slug}/
```

- the name of the collection is remembered as `routerName` (in the case above: "podcast")
- the name of the collection is important for two things
  1. context value
  2. template name
- the context value is available for specific theme helpers e.g. is helper, body_class helper
- we auto-lookup the collection name in your theme e.g. podcast.hbs
- this logic does not apply to static routes
- if you define templates on your collection, they are stronger than the collection name
2018-06-21 20:59:43 +02:00
..
apps Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
auth Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
mail Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
permissions Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
routing Dynamic Routing Beta: collection name behaviour 2018-06-21 20:59:43 +02:00
rss Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
settings Dynamic Routing Beta: Better template support 2018-06-21 16:22:45 +02:00
themes Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
url Fixed collection ownership if a published post status changes to featured 2018-06-17 10:41:05 +02:00
slack_spec.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
webhooks_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
xmlrpc_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00