function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kiran Kumar GottulaKiran Kumar Gottula 

Display the article Details in VF Page from Controller.

How to display the article Details in VF Page from Controller. After this , how can we print all Article Details in the PDF format. Appreciate for your help.

bob_buzzardbob_buzzard

Are you referring to knowledge article details here?  If so, you just need to use the standard controller for the article type and access the fields directly.

 

For example, I have an article type called News, which has an API name of News__kav.  I can then use this in the page as follows:

 

<apex:page standardController="News__kav">
  <apex:outputField value="{!News__kav.Title}" />
  <apex:outputField value="{!News__kav.Summary}" />
</apex:page>

 this does mean that I need to pass the article ID as a parameter to the Visualforce page, as is the case when using any standard controller.

Kiran Kumar GottulaKiran Kumar Gottula
Hi Bob,

I just want to display a PDF with a field name called as 'Details' in
Article.



--

Thanks,

*Kiran Kumar.G*

*MOB: +91 7799455577*