Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Latest commit

 

History

History
113 lines (81 loc) · 3.39 KB

File metadata and controls

113 lines (81 loc) · 3.39 KB

RIOT SUPPORTS CODERDOJO

Required plugins

  • pods
  • timber
  • simple-facebook-open-graph-tags

Configure pods

Pods has to be configured to extend Post / Page with certain custom fields that are used by the Company Header and People twig templates.

For company header:

  • Company Name (company_name, text)
  • Company Logo (company_logo, image)
  • Company Bio (company_bio, WYSISYG)
  • Company URL (company_url, URL)

For people:

  • Person Name (people_name, text)
  • Person Avatar (people_image, image)
  • Person Title (people_tag, text)
  • Person Bio (people_bio, WYSISYG)

Configure Facebook OG

Using the CTA twig template

{% include 'cta.twig' with {'buttontext': 'Call to Action', 'target': 'http://www.google.com', 'class': 'foo' } %}

Using the Company Header twig template

Create a post and fill in the Company related custom fields created in pods.

Using the People twig template

Create a post and fill in the People related custom fields created in pods.

Managing the menus

The main navigation menu is completely handled via the wordpress menu system. Just create a menu called main and start adding links.

Getting specific pages

There are specific pages that need to be added (in wordpress) that have their own twig view (/views), these (can) include other twig files.

To be able to see these pages, create the following pages within the Wordpress Admin:

Page                  slug name
----                  ---------
About                 about
Attend a Dojo         attend-a-dojo
Community             community
-Badges               badges
-Community Committee  community-committee
-Forum                forum
Create a Dojo         create-a-dojo
Volunteer             volunteer
What we do            what-we-do
Donate                donate
User Details          user-details
Register              register
Resources             resources
Foundation            foundation
Supporters            supporters
Movement              movement
News                  news
Regional Bodies       regional-bodies

The menu does not support more than 7 pages.

Adding media within articles

Using POD Admin you need to extend posts and add two new fields, with the following labels and filetypes:

  • video (File / video / image)
  • video-poster (File / video / image)
  • article_desc (Text)

Video should accept video file types and be used to host the video directly.

Upload both an mp4, and a ogg file.

With the Video-poster item you should accept images and this will host the Video's poster (image shown before the video plays).

If neither of this fields are field in a horizontal rule is shown instead to show.

post_banner A required image for posts. This image needs to be large and high quality. It will be injected into a carousel on page-news.