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.

All other Modules /

Discuss all other Modules here.

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

Extending the 'index' function


Go to End


1082 Views

Avatar
Vix

Community Member, 60 Posts

20 October 2016 at 6:23pm

I have an index function in my Page_Controller class that is being used to return a bit of AJAX. However on a UserDefinedForm's page, this function is overwritten as the module uses an index function in the class.

I tried creating an Extension class for the UserDefinedForm_Controller however simply adding a new index function did not seem to change the results.

What is the best way to extend / alter the index function without modifying the module code?

Thanks