feat: sections tree (Sections, Ancestors, FirstSection)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
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
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 (
FluidTemplateEngineconstructor) - 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
c:content good first issue p:low size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
-
c:templates p:medium size:M t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:content p:medium size:L t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:templates p:medium size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
Tutte le issue di MASS4ORG/Fanstatic
Issue simili
-
python triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/semantic-kernel#14590 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nkdAgility/azure-devops-migration-tools#3226 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Status: New
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
dnnsoftware/Dnn.Platform#7556 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno