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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

non Standard menus...


Go to End


2 Posts   1072 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.