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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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


1167 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!