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
[Feature request] Site sub-menu capability #181
Comments
Adding a link to a working bootstrap example of what I have in mind: https://www.bootply.com/123179 I'm also new to bootstrap, BTW, or I maybe would have dived into trying to implement this myself. I also wanted to first get a sense for how the wCMS community felt about this idea... |
@hightowe I like the idea, but I think some heavy lifting would be required for WonderCMS to support sub-pages (due to the way WonderCMS is built). Thanks for the awesome approach, I try to nudge some bright devs for some brainstorming. |
Maybe we could stop replacing the '/' character in the slug of pages, and then render the menu with submenu's but keep the admin the same. For example, this list of
In the pages tab on the admin side this will still show as "example/item1", but when editing pages I think that most users will resort to using the menu. This could probably be best done in a plugin, because when you want a title "features/requests" I can see this system breaking. |
Nice idea, @StephanStanisic ... I like it. Your point about titles with a slash is well taken. Users that used such a plugin could likely instead encode their desired slashes as html entity 47 (
I stumbled across this site this morning, and liked their menu system implementation. It is exactly the type of thing that I have in mind... https://www.aegistp.com/ |
Your suggestion for different characters will only offset the problem, while I don't think there is a big chance of anyone using Also, the URL would look funny this way:
@robiso how is the slug of an URL generated? And will something like As for the implementation of the dropdown, I think the best solution is to use the bootstrap one you suggested earlier. The menu is already using bootstrap's menu and it is a widely used library. |
Good points, @StephanStanisic... One other detail question: referring back to your example above, do you envision "example" to be a page that would render at URL https://example.com/example ...? I do, but was curious of your thoughts. |
I would think that a sub menu would contain a root, a lot of websites do. I think that bootstrap's menu also contains a root So yes, but maybe a way to turn that off? Because most times they are used poorly and you just end up accidentally clicking them. |
@StephanStanisic, currently the main slug function replaces everything that is not a character into "-" a minus. I'll talk to @slavenstancic to see if there's anything useful we can make out of this and build it into the next version. |
@hightowe, @StephanStanisic happy to nofity you that submenus are in the works, waiting in pull request. We're still polishing out some bugs and after it's also thoroughly tested, another pull request will be made by Slaven. |
Very cool, @robiso - thanks. |
is there any update for this, or something to test? |
Hi @compie67, we're still working on resolving some bugs for the next release. Bugs include:
If you wish, you can give it a go from the 320 branch of this repository: https://github.com/robiso/wondercms/tree/320 |
I am a new WonderCMS user and I like it very much, so far. It is exactly the type of CMS that I was looking for to build the website of my new, fledgling startup business (https://adivvyo.com/). I adapted the Paper-L theme for my purpose, and I really like the result.
Looking ahead, the first thing that I can foresee that would force me to change CMSes is the lack of sub-menuing for sites. It seems to me that providing the ability to have sub-menus would really expand the user base that could stick with WonderCMS.
Today, my menu is very simple, but over time it will expand... In web-browsers, I'd like the ability to have the site menu do this, where the Products menu opens when clicked to allow access to the Product A/B/C pages:
In mobile, it would be fine for the "Product A/B/C" items to just be a slightly smaller or altered font, in a vertical list like this"
Honestly, most sites would likely not need more than one level of sub-menus, but providing just one level would really expand the base of users that could stick with WonderCMS.
Thanks to you guys for a nice CMS!
The text was updated successfully, but these errors were encountered: