Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nested sections support #1704

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
30de27f
test: enhances fixtures
ArnaudLigny May 28, 2023
3c678cf
test: add fixtures
ArnaudLigny May 28, 2023
7209c31
feat: nested sections support
ArnaudLigny May 28, 2023
b681d62
Merge branch 'master' into nested-sections
ArnaudLigny May 29, 2023
33f466a
Update Load.php
ArnaudLigny May 29, 2023
bca272e
Update Create.php
ArnaudLigny May 29, 2023
30b3853
Update Pagination.php
ArnaudLigny May 29, 2023
6be1b24
Update Page.php
ArnaudLigny May 29, 2023
54d13d6
Merge branch 'master' into nested-sections
ArnaudLigny May 30, 2023
96df21c
WIP
ArnaudLigny May 30, 2023
af1a404
Update Section.php
ArnaudLigny May 30, 2023
c50b4c8
Update Pagination.php
ArnaudLigny May 30, 2023
d99b671
chore: update deps
ArnaudLigny May 31, 2023
c5be500
Update Page.php
ArnaudLigny May 31, 2023
8f2194a
Update Create.php
ArnaudLigny May 31, 2023
497226e
Update Page.php
ArnaudLigny May 31, 2023
2d40b2f
WIP
ArnaudLigny May 31, 2023
7dbf342
Merge branch 'master' into nested-sections
ArnaudLigny Feb 12, 2024
e2100c0
fix: comments in fixture template
ArnaudLigny Feb 12, 2024
5bb2cd1
fix: errors during main branch merging
ArnaudLigny Feb 12, 2024
025782b
WIP
ArnaudLigny Feb 13, 2024
6180fc8
WIP
ArnaudLigny Feb 13, 2024
cd3fad1
Update Section.php
ArnaudLigny Feb 15, 2024
59af3d4
Update page.html.twig
ArnaudLigny Feb 15, 2024
a4ed2d5
Create breadcrumb.html.twig
ArnaudLigny Feb 15, 2024
dbb56fa
Update page.html.twig
ArnaudLigny Feb 15, 2024
d69b646
Update Create.php
ArnaudLigny Feb 15, 2024
ab19a16
Update Load.php
ArnaudLigny Feb 15, 2024
8e6510f
Update Page.php
ArnaudLigny Feb 20, 2024
91a2d50
WIP
ArnaudLigny Feb 21, 2024
8937900
It works \o/
ArnaudLigny Feb 22, 2024
5b8e96e
Apply fixes from StyleCI (#1911)
ArnaudLigny Feb 22, 2024
f128a7b
Update Render.php
ArnaudLigny Feb 22, 2024
dd421e1
Merge branch 'nested-sections' of https://github.com/Cecilapp/Cecil i…
ArnaudLigny Feb 22, 2024
4e9d53e
Merge branch 'master' into nested-sections
ArnaudLigny Feb 23, 2024
595b145
fix ancestors
ArnaudLigny Feb 23, 2024
ed4badf
Update Render.php
ArnaudLigny Feb 23, 2024
37f3027
test: update fixtures
ArnaudLigny Feb 23, 2024
a6db179
Update Page.php
ArnaudLigny Feb 23, 2024
6ff6f77
Update Render.php
ArnaudLigny Feb 23, 2024
299e068
Update intl.html.twig
ArnaudLigny Feb 23, 2024
54b7bb0
test: update fixtures
ArnaudLigny Feb 23, 2024
264585e
Update Section.php
ArnaudLigny Feb 23, 2024
d5a8b93
Update Section.php
ArnaudLigny Feb 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Section.php
ArnaudLigny committed Feb 23, 2024
commit d5a8b933281201020d55fd34df73990da2d1e666
1 change: 1 addition & 0 deletions src/Generator/Section.php
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ public function generate(): void
if ($page->getVariable('published') !== true || $page->getVariable('exclude')) {
continue;
}
// $sections[section][language][] = $page
$sections[$page->getSection()][$page->getVariable('language', $this->config->getLanguageDefault())][] = $page;
// nested sections
/*if ($page->getParent() !== null) {