Wish List
Posted: Sat Feb 10, 2024 12:04 pm
Hi Robert,
I'm back working on my own Wcms site. Check out:
https://gregchapman.uk
and am hoping to offer my theme to the community once I am happier with it. My PHP and JavaScript knowledge is limited to being able to insert snippets of other people's code into my files so I'm going to gently lean on you to help with a couple of, hopefully simple upgrades to Wcms.
There are two things that are high on my wish list:
I'm back working on my own Wcms site. Check out:
https://gregchapman.uk
and am hoping to offer my theme to the community once I am happier with it. My PHP and JavaScript knowledge is limited to being able to insert snippets of other people's code into my files so I'm going to gently lean on you to help with a couple of, hopefully simple upgrades to Wcms.
There are two things that are high on my wish list:
- A revised default template that includes the following blocks
- header
- Navigation
- Main
- Footer
- Improved sub-page handling
To my mind this comes down to a simple change in the <?= $Wcms->menu() ?> module. Currently, it produces code like this when a couple of sub-pages are added (as in my site linked above):I would like to see Line 2 become something likeCode: Select all
1. <li class="nav-item subpage-nav"> 2. <a class="nav-link" href="games/">Games</a> 3. <ul class="subPageDropdown"> 4. <li class="nav-item "> 5. <a class="nav-link" href="games/board">Board</a> 6. </li> 7. <li class="nav-item "> 8. <a class="nav-link" href="games/table">Table</a> 9. </li> 10. </ul> 11. </li>
2. <button class="subPageBtn">Games</button>
It doesn't have to be button. <p> would do!
I accept that it would leave the top level menu without access to a page, as it currently does but the advantage is that you can have "click" menu options and don't have to rely on "hover" actions on touch screens, which make access to pages a real pain on touch screens.