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.

Template Questions /

non Standard menus...


Reply


2 Posts   797 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
banal

Community Member, 901 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.