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.

All other Modules /

Discuss all other Modules here.

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

SS3 GridField: finally got it working


Reply


3 Posts   701 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 [url=http://www.inforbiro.com/blog-eng/silverstripe-gridfield-tutorial/]this page[/url]; 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