0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters ES6 migration: server/adapters/scheduling/utils.js (#9689) 2018-06-14 19:15:12 +02:00
api Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
apps Dynamic Routing Beta: Better template support 2018-06-21 16:22:45 +02:00
config Replaced routeKeywords in config with hard coded keywords (#9561) 2018-04-17 10:36:05 +01:00
data Dynamic Routing Beta: collection name behaviour 2018-06-21 20:59:43 +02:00
helpers 🐛 Fixed preview url and Zapier on subdirectory (#9683) 2018-06-12 16:36:58 +01:00
lib Koenig - Do not render image cards with no src on the front-end 2018-06-14 14:57:09 +01:00
models Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
public 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
services Dynamic Routing Beta: collection name behaviour 2018-06-21 20:59:43 +02:00
translations Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
views Fixed error trying to render 404 for missing asset 2017-12-22 20:08:59 +00:00
web Added debug log in error handler 2018-06-14 00:36:19 +02:00
analytics-events.js Cleared out old unused events 2017-12-13 09:08:25 +00:00
filters.js Moved pipeline/sequence to lib/promise 2017-12-13 22:20:02 +01:00
ghost-server.js Consistent event names 2018-04-15 23:52:42 +02:00
index.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
overrides.js Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
update-check.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00