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:

All other Modules /

Discuss all other Modules here.

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

SS3 GridField: finally got it working


Go to End


3 Posts   1088 Views

Avatar
jere

Community Member, 8 Posts

6 August 2012 at 8:12pm

Man. I've stumbled around for hours trying to get a simple GridField happening in SS3. Finally came across this page; and guess what - it's working! Hope this saves some time for someone else.

Avatar
LinseyM

Community Member, 99 Posts

19 January 2013 at 3:52am

Oh my god... thank you SO much! :-)

Avatar
LinseyM

Community Member, 99 Posts

21 January 2013 at 11:39pm

PS just for any newbies... a *simple* way to list all of the "contacts" on your site would be to add the following rough code to the "ContactListPage.ss" template:

   <% control Contacts %>

	<p style="clear:left;">
	<% if ProfilePicture %><img src="$ProfilePicture.URL" style="float:left;margin:20px;" /><% end_if %>
	Name: $Name<br/>
	<em>$Description</em><br/>
	<a href="$Website">Visit Website</a><br/>
	</p>

   <% end_control %>

Linsey x