MichalKleiner

don’t forget to run dev/build?flush after adding the field to build the db

MichalKleiner

Hey @Mark Chambers, how are you man? It’s not a simple answer, there are tens of ways how to do it, depending on the actual requirements. In general, you’d need a $db entry in your page type class, e.g. 'GroupName' => 'Text' and then in the menu template, when iterating the pages, use {$GroupName} to access the value.

I’d strongly recommend https://www.catalyst.net.nz/training/course/introduction-silverstripe-development-wellington to get much better insight into how SS things work.

Show 1 attachment(s)
Catalyst  
Introduction to SilverStripe Development (Wellington)

About the course This course is for developers who would like to know how to use SilverStripe to build web applications, using common and well supported...

Hide attachment content
null

I'm running that course next Thursday* 😄

Mark Chambers

Hey @MichalKleiner! Yea all good thanks 😄 You? Thanks for your reply 🙂

Mark Chambers

Oh i would (try) go to that catalyst course, but im at a conf that day

Mark Chambers

Hello, I'm new to SS. How would i add a 'group name' to pages? I want to add a page, be able to type a group name such as "products", and then output it in the http://Menu.ss file. I know how to display it in the ss template, it's just adding the 'group name' field to the new pages bit im having trouble with. (SS3.6)

unclecheese

Still lots to do, though. Feel free to jump in and help! https://github.com/unclecheese/gatsby-poc/projects/1

Show 1 attachment(s)
GitHub  
unclecheese/gatsby-poc

Issue tracking for SS + Gatsby POC. Contribute to unclecheese/gatsby-poc development by creating an account on GitHub.

Hide attachment content
Conan

@unclecheese I have not tried Gatsby myself yet but looks promising, and I love SilverStripe so I'm really eager to try this out. It would also be fun to contribute to this package, I will look more into this 👍

unclecheese

But basically that, along with the silverstripe/silverstripe-gatsby SS module will build out your site in Gatsby with zero config. It just takes dataobject with a Link() function and stuffs it into a generated gatsby page, using the same template inheritance pattern as SSViewer.

unclecheese

Hey, @Conan! Thanks for your interest. A good place to start is the gatsby-starter-silverstripe starter. https://github.com/unclecheese/gatsby-starter-silverstripe

Show 1 attachment(s)
GitHub  
unclecheese/gatsby-starter-silverstripe

A starter for a Gatsby/Silverstripe CMS integration - unclecheese/gatsby-starter-silverstripe

Hide attachment content
stevie

and when I say @unclecheese and I started working on it, I mean I started it then he has taken it to the point it actually works, I haven't had the mental framework for working on it for a couple of months

stevie

but join #graphql if you're interested. theres a gatsby starter here: https://github.com/unclecheese/gatsby-starter-silverstripe and the graphql module endpoints here: https://github.com/silverstripe/silverstripe-gatsby

Show 2 attachment(s)
GitHub  
unclecheese/gatsby-starter-silverstripe

A starter for a Gatsby/Silverstripe CMS integration - unclecheese/gatsby-starter-silverstripe

GitHub  
silverstripe/silverstripe-gatsby

Provides a GraphQL API that allows Gatsby to use your SilverStripe CMS as a data source - silverstripe/silverstripe-gatsby

Hide attachment content
👍 (1)