Skip to content

Instantly share code, notes, and snippets.

@GrantSmithDoddle
Last active August 16, 2019 14:47
Show Gist options
  • Save GrantSmithDoddle/3f7cc77be652285ff33b5cc1c2517f6e to your computer and use it in GitHub Desktop.
Save GrantSmithDoddle/3f7cc77be652285ff33b5cc1c2517f6e to your computer and use it in GitHub Desktop.
Basic tutorial for installing a Perch Runway Tutorial…

Great resources

  1. Setting up a Blog in Perch Runway (Video)

  2. Runway Configuration

Process

  1. Install blog to apps

  2. Add perch_blog to apps.php

  3. Copy addons/apps/perch_blog/templates/blog to templates/blog

  4. Copy from download folder blog to templates/pages/

  5. Add Post page routes custom token to /config/runway.php

    'routing_tokens' => [
      'blogslug' => '[1-2][0-9]{3}\-[0-9]{2}\-[0-3][0-9]-[a-z0-9\-]+',
    ],
    
  6. Create test blog posts on back end, remember to publish, add categories

  7. Rename blog if required control panel/Blog/Blogs

  8. Add Blog post page path under control panel / Settings / Blog. For example, /PATH/{postSlug}

  9. Add page to display blog

  10. Blog page/Location. Change path if required and URL Pattern to PATH/page/[i:page]. Add second URL pattern for blog preview. PATH/[slug:s]/[preview:preview] to Blog main page

  11. Add posts as above. Adding PATH/[slug:s] to URL pattern

  12. Add Archive Page, adding the following URL Patterns

    • PATH/category/[slug:cat]

    • PATH/tag/[slug:tag]

    • PATH/[year:year]

    • PATH/[year:year]/[i:month]

    • PATH/author/[slug:author]

  13. Change templates to match the above file paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment