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.

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   1483 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