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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Multi-Column Output


Go to End


3 Posts   1877 Views

Avatar
jfusco

Community Member, 53 Posts

23 January 2009 at 11:55am

I'm not trying to have a multi-column template. What I'm trying to do is get a long list of items to display across multiple columns within the page framework.

I essentially copied the sitemap files from tutorial 6 and modified them so that they display a list of all article pages in the site (see http://www.unclebubby.com/wavs2/master-list). When I am done, I will have close to if not in excess of 200 articles and it may get bigger. Rather than just spitting out a long list that people have to scroll through for two days before reaching the end, I would like the output to be in columns.

I have searched the web and found an example for CSS (http://www.alistapart.com/articles/multicolumnlists) but I've tried to use it and can't seem to figure out where to insert the code. I don't want to use an HTML table and can't, for some reason, wrap my head around how to do that within SS anyway. I even found a javascript which looked to be perfect but it didn't work in IE7 although it worked fine in FireFox.

Can anyone help me line this out? Bonus gratitude points if you can also tell me how to alphebetize the list.

Thanks,
Joe

Avatar
tobych

Community Member, 97 Posts

19 February 2009 at 3:33pm

From your site it looks like you fixed this. Right?

Avatar
jfusco

Community Member, 53 Posts

19 February 2009 at 3:46pm

Yes, yes I did. I was being a noob and realized my posting here was in the wrong forum. I posted it in the templates forum and came up with a tidy little solution that's actually adjustable. Thank you for replying.