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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Add a button shortcut in getCMSFields to create page


Go to End


1222 Views

Avatar
brice

Community Member, 52 Posts

10 September 2010 at 1:31pm

Does anyone have recommendations for adding a button to my getCMSFields that's essentially a shortcut for;

Clicking "Create" in left sidebar,
Choosing appropriate page type,
then clicking "Go".

I'd also like to override the default title / menutitle of the page via this button (which I believe can also be done via populateDefaults()) if possible.

Many thanks!