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
AndrewTaylorAndrewTaylor 

Visualforce page for all Article Types

I'm building a VF page that will print an Article from the Knowledgebase.

The client may add/remove article types over time, and I'm fairly new the Knowledge VF tags (though familiar with Visualforce itself).  Is there a method for Knowledge to return the Article content w/o having to customize a Controller/VF page per article type?
Ashish_SFDCAshish_SFDC

Hi AJ, 


setup > customize > knowledge > article types. the api names end in __kav instead of __c

find the API name, and then your controller reads that object like you would any other object in salesforce. note, you can only display the content, you can't use visualforce to modify it in any way (not supported yet).

https://developer.salesforce.com/forums/ForumsMain?id=906F000000096tdIAA


Regards,

Ashish