When following the steps on this page to make an example VF page with the Ideas Controller https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_pages_ideastandardcontroller.htm
I get the following error
Unknown constructor 'MyIdeaExtension.MyIdeaExtension(ApexPages.StandardController controller)'
Does anyone know how to fix this? My controller looks exactly like the example, as does my VF page... with "standardController="Idea" extensions="MyIdeaExtension"" in the apex:page. Any help would be appreciated!
Edit: Found part of the issue, although it leads to another error
In the docs for the extension it has
public MyIdeaExtension(ApexPages.IdeaStandardController controller) { ideaController = (ApexPages.IdeaStandardController)controller; }
when it should be using the ApexPages.StandardController for the argument in the constructor.
public MyIdeaExtension(ApexPages.StandardController controller) { ideaController = (ApexPages.IdeaStandardController)controller; }
But then this gives me an error on the actual VF page saying
Invalid conversion from runtime type ApexPages.StandardController to ApexPages.IdeaStandardController
If someone can successfully implement the example in the docs I linked, I would love to know.