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

Can you customize a pagetype's title?


Reply

3 Posts   725 Views

Avatar
otherjohn

13 October 2010 at 3:52am Community Member, 125 Posts

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

13 October 2010 at 4:06am Community Member, 125 Posts

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

13 October 2010 at 1:09pm Forum Moderator, 5511 Posts

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