Developer forum

Forum » Development » Get Page Content

Get Page Content

Yasharth Tahiliani
Reply

Hi,

I am building a custom search for my site wherein I would like to get the content of pages. These are standard pages and not items. I am able to get their IDs and I was wondering how I can get the content of these pages to display a part of them in the search results.

I am doing something like this in a asp.net user control, using the required Dynamic Web namepsaces and classes:

                Dynamicweb.Frontend.PageView pgv = Dynamicweb.Frontend.PageView.GetPageviewByPageID(Convert.ToInt32(id));

                string c = pgv.CurrentParagraph.Text;

                c = c.Substring(0, 5);

Any help will be much appreciated.

Regards,

Yash.


Replies

 

You must be logged in to post in the forum