Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » User define control

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1602 Views
  • thbeh
    Avatar
    Community Member
    6 Posts

    User define control Link to this post

    Hi,

    I manage to write a control instead of using Children in my template. Eventhough I manage to passed the value back to the template but I can use the formating function. eg. $Date.Nice or even $Content.FirstParagraph. Did I miss anything in my control function?

    Thanks

  • thbeh
    Avatar
    Community Member
    6 Posts

    Re: User define control Link to this post

    Solved.

    Actually I was trying to simulate the Children control as I needed extra process for each column. But somehow I only managed to passed the value back to the templates instead of the object.

    After going some docs on templates, i used the obj() method instead and now everything works fine.

    1602 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.