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

Can you customize a pagetype's title?


Go to End


3 Posts   1048 Views

Avatar
otherjohn

Community Member, 125 Posts

13 October 2010 at 3:52am

Hi,
Lets say I create an extended module like "EventRegistration" to extend the "CalendarEvent" module.
I perform a static $hide_ancestor = 'CalendarEvent'; to hide the original, but how can I change the name of "EventRegistration" to something else without renaming the class? Even better, to give it the name in the CMS - "CalendarEvent".

Is this possible?

Avatar
otherjohn

Community Member, 125 Posts

13 October 2010 at 4:06am

Or actually, I really just want to add an onAfterWrite() event to some particular modules like EventCalendar without having to hack the modules code? How would I do that?

Avatar
Willr

Forum Moderator, 5523 Posts

13 October 2010 at 1:09pm

Are you meaning in the create type XX dropdown?? If so then you can declare the add action on the class

http://doc.silverstripe.org/upgrading:2.4.0#removed_sitetreeadd_action