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.

Releases and Announcements  

Latest news about the SilverStripe software.

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


Reply

Available BB Code tags

  • Bold Text [b]Bold[/b]
  • Italic Text [i]Italic Text[/i]
  • Underlined Text [u]Underlined[/u]
  • Struck-out Text [s]Struck-out[/s]
  • Coloured text [color=blue]blue text[/color]
  • Alignment [align=right]right aligned[/align]
  • Code Block: Unformatted code block [code]Code block[/code]
  • Email link: Create link to an email address [email]you@yoursite.com[/email]
  • Email link: Create link to an email address [email=you@yoursite.com]Email[/email]
  • Unordered list: Unordered list [ulist][*]unordered item 1[/ulist]
  • Image: Show an image in your post [img]http://www.website.com/image.jpg[/img]
  • Website link: Link to another website or URL [url]http://www.website.com/[/url]
  • Website link: Link to another website or URL [url=http://www.website.com/]Website[/url]

Available BB Code tags

  • Bold Text
    Example: [b]Bold[/b]
  • Italic Text
    Example: [i]Italic Text[/i]
  • Underlined Text
    Example: [u]Underlined[/u]
  • Struck-out Text
    Example: [s]Struck-out[/s]
  • Coloured text
    Example: [color=blue]blue text[/color]
  • Alignment
    Example: [align=right]right aligned[/align]
  • Code Block: Unformatted code block
    Example: [code]Code block[/code]
  • Email link: Create link to an email address
    Example: [email]you@yoursite.com[/email]
  • Email link: Create link to an email address
    Example: [email=you@yoursite.com]Email[/email]
  • Unordered list: Unordered list
    Example: [ulist][*]unordered item 1[/ulist]
  • Image: Show an image in your post
    Example: [img]http://www.website.com/image.jpg[/img]
  • Website link: Link to another website or URL
    Example: [url]http://www.website.com/[/url]
  • Website link: Link to another website or URL
    Example: [url=http://www.website.com/]Website[/url]
Avatar
Willr

Forum Moderator, 5521 Posts

13 July 2014 at 8:47pm

Displaying the items on the front end is easy. See http://www.silverstripe.org/data-model-questions/show/6215 for a thread discussing this.

Avatar
bunheng

Community Member, 78 Posts

13 July 2014 at 3:13am

Hi Willr,

Thank very much for your reply. Actually gridfield work great in Admin area. I would like to display all DataObject items on homepage and link each item if the visitor would like to see the detail of each individual item, as an example the news module on this website http://www.tslrdp.org/where-we-work/kampong-thom/latest-news/ I did on SilverStripe 2.4.

Thanks in advance if you could give any example site how to do this.

Bunheng

Avatar
Willr

Forum Moderator, 5521 Posts

12 July 2014 at 11:30am

If you click anywhere on the row in GridField you will get taken to the edit / view screen for that record as long as you've added the GridFieldDetailForm component to your configuration.

$gridField->addComponent(new GridFieldDetailForm());

Avatar
bunheng

Community Member, 78 Posts

11 July 2014 at 3:05am

Edited: 11/07/2014 10:48pm

Hi There,

Is it possible to create a link to see the details of each individual record using gridfield.
Example like click on read more to see news details?

Thanks
Bunheng