Get page metadata from API

Miguel Sanchez asked on January 23, 2016 05:37

I'm trying to programmatically retrieve the page metadata (keywords, page descriptions, etc.) from a document for example...

var pages = DocumentHelper.GetDocuments("CMS.MenuItem");      
foreach (var page in pages)
    {
        Console.WriteLine("The keywords for {0} are {1}", page.DocumentName, ????);
        Console.WriteLine("The page description for {0} is {1}", page.DocumentName, ????);
    }

Could someone fill in the blanks for me?

Recent Answers


David te Kloese answered on January 23, 2016 16:15

Hi,

Keywords and description are stored in [DocumentPageKeyWords] and [DocumentPageDescription].

Greets,

David

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 25, 2016 17:54

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.