Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » SS3 GridField: finally got it working

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 583 Views
  • jere
    Avatar
    Community Member
    8 Posts

    SS3 GridField: finally got it working Link to this post

    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.

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: SS3 GridField: finally got it working Link to this post

    Oh my god... thank you SO much!

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: SS3 GridField: finally got it working Link to this post

    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

    583 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.