Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: sections tree (Sections, Ancestors, FirstSection)

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start with Fanstatic/Models/Page.cs:38-64 to understand the existing Parent and Pages members, then inspect FluidTemplateEngine and the Phase 1 caching issues. Check Fanstatic.Test/ and .TestSites/ for test patterns and fixtures, and run ./build.sh test. Done means the requested section members work in each page’s language and output format, caching and Fluid registration are handled as needed, the page-variables docs are updated, and the breadcrumb acceptance example works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

c:content p:medium size:S t:feature

Part of the Phase 2 epic (#23).

Current State

Pages expose Parent (Fanstatic/Models/Page.cs:38-64) and Pages, but there is no way to walk the section
hierarchy: no page.Ancestors, page.Sections, page.FirstSection or site.Sections. Breadcrumbs and nested
menus need these.

Tasks:
  • page.Ancestors (parent first, home last), page.FirstSection, page.Sections (child sections),
    site.Sections (top-level sections), all in the page's language and output format
  • Cache them per page (see the Phase 1 caching issues)
  • Register new types/members with Fluid if needed (FluidTemplateEngine constructor)
  • Document on the page-variables docs

Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.

Acceptance Criteria:
  • A breadcrumb partial works with {% for a in page.Ancestors reversed %}.
Related:
  • #23 (Phase 2 epic, parent)
Lingua principale
C#
Stelle
1
Fork
0
Merge medio
13h 50m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MASS4ORG/Fanstatic

Tutte le issue di MASS4ORG/Fanstatic

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.