Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

non Standard menus...


Go to End


2 Posts   1295 Views

Avatar
Lumpy

Community Member, 1 Post

12 February 2010 at 8:12am

New to SilverStripe, and right off the bat I want to be wierd.

I dont want a menu that is horizontal or vertical. I want an array. Basically a rectangle with 9 boxes (or more) in it in a 3X3 or 3X4 grid. none are submenus, all are the main menu.

Is this possible in SilverStripe? can I control arrangement of the menu "buttons"?

Avatar
bummzack

Community Member, 904 Posts

12 February 2010 at 11:56am

Hi and welcome

That's not a problem and can easily be achieved by using CSS only.
You could output the menu as a unordered list (using the Menu(1) control as usual). By setting the ul and li elements to a fixed with and by using float you can create a "grid".
Example: li have float: left and width: 100px, ul has width: 300px. To make it look good, the li elements should also get a fixed height.