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

Sidebar (page list) as Gutenberg block #132

Open
brylie opened this issue Aug 4, 2021 · 0 comments
Open

Sidebar (page list) as Gutenberg block #132

brylie opened this issue Aug 4, 2021 · 0 comments
Labels
💻 aspect: code Concerns the software code in the repository 🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing feature good first issue New-contributor friendly help wanted Open to participation from the community 🟧 priority: high Stalls work on the project or its dependents 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work
Projects

Comments

@brylie
Copy link
Contributor

brylie commented Aug 4, 2021

Problem

Our default layout currently displays a sidebar. The sidebar renders a page list where the pages are children of the parent:

<aside class="sidebar">
<?php
$parent = CC_Site::get_parent_page();
echo '<nav class="side-navigation padding-vertical-big">';
echo '<ul class="list-pages">';
wp_list_pages(
array(
'child_of' => $parent,
'show_date' => '',
'depth' => 3,
'title_li' => '',
)
);
echo '</ul>';
echo '</nav>';
get_sidebar();
?>
</aside>

However, having the sidebar doesn't allow Gutenberg blocks to display full-width.

Description

Determine how best to handle the sidebar menu, such as

  • moving it to a custom Gutenberg widget
  • using the default Gutenberg page list block (which doesn't allow specifying a root page)
  • making the default template have no sidebar and creating a "page with sidebar" theme

Related resources

@brylie brylie added good first issue New-contributor friendly help wanted Open to participation from the community 🟧 priority: high Stalls work on the project or its dependents 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work ✨ goal: improvement Improvement to an existing feature 💻 aspect: code Concerns the software code in the repository 🕹 aspect: interface Concerns end-users' experience with the software labels Aug 4, 2021
@cc-open-source-bot cc-open-source-bot added this to Ready for Development in Active Sprint Aug 4, 2021
@cc-open-source-bot cc-open-source-bot removed this from Ready for Development in Active Sprint Aug 4, 2021
@cc-open-source-bot cc-open-source-bot added this to Pending Review in Backlog Aug 4, 2021
@brylie brylie changed the title Sidebar/page list as Gutenberg widget Sidebar (page list) as Gutenberg block Aug 5, 2021
@brylie brylie removed this from Pending Review in Backlog Feb 14, 2022
@cc-open-source-bot cc-open-source-bot added this to Pending Review in Backlog Oct 24, 2023
@TimidRobot TimidRobot moved this from Pending Review to Websites in Backlog Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing feature good first issue New-contributor friendly help wanted Open to participation from the community 🟧 priority: high Stalls work on the project or its dependents 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work
Projects
Backlog
Websites
Development

No branches or pull requests

1 participant