0

I have create a visualforce with KnowledgeArticleVersion as standardController

Visualforce page:

<apex:page standardController="KnowledgeArticleVersion" extensions="MyController" showHeader="false">
   <div>Test here for text</div>
</apex:page>

Apex Class:

public with sharing class MyController {

    public SObject article { get; set; }

    public MyController() {
    }

    public MyController(ApexPages.StandardController controller) {
        SObject record = (KnowledgeArticleVersion) controller.getRecord();
        String articleId = record.Id;
        if (articleId != null) {
            this.populateArticle(articleId);
        }
    }
}

my problem is that visualforce page not shown in artcle page layout. See screenshot. I know that visualforce page shown in page layout is visualforce page with standardController related to the object, but I have try Knowledge__kav, Knowledge__ka, and KnowledgeArticle but no luck.

enter image description here

0

You need to use KnowledgeArticleVersionStandardController

KnowledgeArticleVersionStandardController Class

  • That's not work. have you tried by your self? – Habibillah Dec 27 '18 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.