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.

General Questions /

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

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

Add a button shortcut in getCMSFields to create page


Reply


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