Wish List

Ask for help or provide support to other members.
Post Reply
NorfolkGreg
Posts: 90
Joined: Wed Sep 01, 2021 7:50 am

Wish List

Post by NorfolkGreg »

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:
  • A revised default template that includes the following blocks
    • header
    • Navigation
    • Main
    • Footer
    I have never understood why a header block is missing from the existing default template. I'm assuming one could be left empty to accommodate existing themes without issue, but an editable space would have the benefit of making WonderCMS so much more flexible and useful out of the box for many more types of site.
  • 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):

    Code: 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>
    
    I would like to see Line 2 become something like
    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.
I'd love your thoughts, and anyone else's reaction to these ideas.
Last edited by NorfolkGreg on Mon Mar 04, 2024 4:01 pm, edited 1 time in total.
OneManLaptop
Posts: 68
Joined: Tue Mar 16, 2021 3:29 pm

Re: Wish List

Post by OneManLaptop »

All that sounds sensible Robert. I can't imagine it being too much work to implement either.
Post Reply