0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/services/routing/helpers
kirrg001 a1b55509df Dynamic Routing Beta: collection name behaviour
refs 

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
..
context.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
error.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
fetch-data.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
format-response.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
index.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
post-lookup.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
render-collection.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
render-entry.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
renderer.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
secure.js Dynamic Routing Beta () 2018-06-05 19:02:20 +02:00
templates.js Dynamic Routing Beta: collection name behaviour 2018-06-21 20:59:43 +02:00