21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 598 Views |
-
Can you customize a pagetype's title?

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?
-
Re: Can you customize a pagetype's title?

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?
-
Re: Can you customize a pagetype's title?

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
| 598 Views | ||
|
Page:
1
|
Go to Top |


