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.

Archive /

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

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

User define control


Go to End


2 Posts   2248 Views

Avatar
thbeh

Community Member, 6 Posts

11 April 2007 at 11:36am

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

Avatar
thbeh

Community Member, 6 Posts

11 April 2007 at 7:13pm

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.