How to set up a home section

You want to have a card for a Lepiter page automatically installed in the Home Section of GT when you load your GitHub repo (i.e., a card similar to the Glamorous Toolkit Book card).

Use the GtHomeMultiCardSection GtHomeSection << #GtHomeMultiCardSection slots: { #sectionTitle . #cards }; tag: 'Sections'; package: 'GToolkit-World' class.

Create a subclass of GtHomeMultiCardSection GtHomeSection << #GtHomeMultiCardSection slots: { #sectionTitle . #cards }; tag: 'Sections'; package: 'GToolkit-World' with cards defined in methods with a <gtSectionCard> pragma. For example: GtHomeMultiCardGetStartedSection GtHomeMultiCardSection << #GtHomeMultiCardGetStartedSection slots: {}; tag: 'Sections'; package: 'GToolkit-World' .

To install this as a home section card, you must implement an extension method of the GtHome BlElement << #GtHome slots: { #sectionsHolder . #feedElement . #notificationsElement . #knowledgeBase }; tag: 'UI'; package: 'GToolkit-World' class. For example: GtHome>>#getStartedSection getStartedSection <gtHomeSection> <gtExample> <noTest> ^ GtHomeMultiCardGetStartedSection new .

Note that this should be categorized as an extension method of one of your packages, for example *MyStuff (assuming MyStuff is a package of your repo). In this way, as soon as your repo is loaded, so will the extension method, and your card will automatically appear in the home section.