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.

Data Model Questions /

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

Understanding parameters


Go to End


2 Posts   1852 Views

Avatar
NickJacobs

Community Member, 148 Posts

25 February 2009 at 4:44pm

Hi, I'm used this modification of some code I found in the forum in a current site:

return DataObject::get("Page","ShowInMenus = 1 AND ShowOnHomePage = 1", "", "",20);
or even
$fields->addFieldToTab('Root.Content.PageTeaser', new TextField('HomePageOrder', 'Home Page Order', '', 10));

These works great, but the problem is I don't know where to find documentation of the parameters etc that can be used. I use addFieldToTab all the time, but still don't know if i am missing out on features because I don't know which parameters can be used :)

Any pointers would be appreciated.

Avatar
Hamish

Community Member, 712 Posts

25 February 2009 at 8:08pm

The API Documentation has detailed documentation of every class.. might be a good place to look.