Gatsby: dynamic pages?

Created on 2 Aug 2016  Â·  8Comments  Â·  Source: gatsbyjs/gatsby

Hi, I was wondering if Gatsby has support for something like this?

https://middlemanapp.com/advanced/dynamic_pages/

I'd like to pass some data to a template and have Gatsby generate the pages

Most helpful comment

Well now all future Google visitors will have breadcrumbs to direct them on
the right path :-)

On Sun, Apr 2, 2017, 9:38 PM Dmitri G notifications@github.com wrote:

Awesome!! Somehow google decide that this issue was the most relevant
thing, but seems that is not the case :-) thanks!

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/373#issuecomment-291031383,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEVhzIj4dRSRONq4T58wC2RnIXF-2Amks5rsE2sgaJpZM4JaXLZ
.

All 8 comments

Yes-ish.

You can't yet dynamically create pages but if you add a react component file (e.g. cool-dynamic-page.js) it'll get created at /cool-dynamic-page/. Each page component gets passed all site data at this.props.route.pages. A good example of this is the index page for the blog starter https://github.com/gatsbyjs/gatsby-starter-blog/blob/master/pages/index.js

I'm working towards making this paradigm much more powerful.

I need something like this too =\

FYI, we implemented this in Phenomic by reading user react-router routes and generate all possible pages according to front-matter metadata https://phenomic.io/docs/usage/routing/

Would love to see what's possible here! :-)

@dmitrig01 this is all working in v1! Checkout this issue from last fall https://github.com/gatsbyjs/gatsby/issues/421 and the gatsbygram case study https://www.gatsbyjs.org/blog/gatsbygram-case-study/#app-structure

Awesome!! Somehow google decided that this issue was the most relevant thing, but seems that is not the case :-) thanks!

Well now all future Google visitors will have breadcrumbs to direct them on
the right path :-)

On Sun, Apr 2, 2017, 9:38 PM Dmitri G notifications@github.com wrote:

Awesome!! Somehow google decide that this issue was the most relevant
thing, but seems that is not the case :-) thanks!

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/gatsbyjs/gatsby/issues/373#issuecomment-291031383,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEVhzIj4dRSRONq4T58wC2RnIXF-2Amks5rsE2sgaJpZM4JaXLZ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferMartz picture ferMartz  Â·  3Comments

hobochild picture hobochild  Â·  3Comments

benstr picture benstr  Â·  3Comments

brandonmp picture brandonmp  Â·  3Comments

timbrandin picture timbrandin  Â·  3Comments