Theme block and surface reference
Generated from theme engine 1.7.0. Every row is read from the engine’s own vocabularies, so this page describes the build it came from. It is the reference half of Building a theme; read that first.
Surfaces you can address
Section titled “Surfaces you can address”A theme names a surface under structural.layout.surfaces. A surface you do not name inherits the hub-wide layout. That is what keeps your theme working on surfaces that ship after it, so name only what you want to change.
| Surface | Paths it covers | Accepts blocks |
|---|---|---|
member.dashboard |
/, /dashboard |
yes |
member.competitions |
/competitions |
no |
member.competition |
/competitions/… |
no |
member.leaderboards |
/leaderboard, /leaderboards, /leaderboards/…, /leaderboard/… |
yes |
member.groups |
/groups |
yes |
member.group |
/groups/… |
no |
member.tips |
/tips, /tips/… |
no |
member.profile |
/profile, /profile/… |
no |
member.achievements |
/achievements, /achievements/… |
no |
member.analytics |
/analytics, /analytics/… |
no |
member.social |
/social, /social/… |
no |
member.discover |
/discover, /discover/… |
no |
member.notifications |
/notifications, /notifications/… |
no |
member.referrals |
/referrals, /referrals/… |
no |
member.settings |
/settings, /settings/… |
no |
member.support |
/support, /support/… |
no |
member.help |
/help, /help/… |
no |
17 surfaces. A collection index and its detail pages are different surfaces: member.competitions is the list, member.competition is one competition, because they rarely want the same layout.
Every surface takes layout axes; 3 take a blocks list (member.dashboard, member.leaderboards, member.groups). An axis (density, grid, gaps) modifies what a surface draws. A blocks list replaces it, so it is only offered where every part of the surface has a block id; anywhere else, parts with no id would silently disappear. Naming blocks on any other surface is refused at upload.
Blocks you can place
Section titled “Blocks you can place”Under a surface’s blocks. Omit blocks to leave a surface’s own composition alone. An empty array is rejected, because “draw nothing” is a blank page nobody means. Order is the order you write. span is twelfths of the surface, and every block is full width on a phone regardless.
| Block | Settings | Required on |
|---|---|---|
block.hero |
none | none |
block.my-competitions |
none | none |
block.standings |
limit |
none |
block.competition-leaderboard |
itemsPerPage |
none |
block.groups-landing |
none | none |
block.activity-feed |
limit, title |
none |
block.stats |
none | none |
block.weekly-recap |
none | none |
block.banter |
none | none |
block.tip-now |
none | none |
block.rank-movers |
none | none |
block.rank-history |
compact |
none |
block.round-progress |
none | none |
block.round-result |
none | none |
block.upcoming-fixtures |
none | none |
block.inter-group-standings |
none | none |
block.group-standings |
none | none |
block.social-feed |
none | none |
block.privacy-settings |
none | member.profile |
block.data-export |
none | member.profile |
block.leave-hub |
none | member.profile |
block.delete-account |
none | member.profile |
22 blocks. Spans: span1, span2, span3, span4, span5, span6, span7, span8, span9, span10, span11, span12.
Blocks a surface must keep
Section titled “Blocks a surface must keep”These are the account and privacy controls. A theme can never remove them from a member’s view, and none of them takes a setting, because every setting on a statutory control would be a way for a theme to alter it.
member.profile:block.privacy-settings,block.data-export,block.leave-hub,block.delete-account
The renderer always draws them, whatever layout a theme chooses, so a member never loses an account or privacy control to a design decision.
Was this page helpful?