Developer forum

Forum » Development » API for getting page content

API for getting page content


Reply

Hi,

I have a PageTemplateExtender that retrieves content for sub pages and creates a tab system where the user can click on the tabs a get pagecontent without haveing to do a posback.

In my PageTemplateExtender i generate Global:Page.Content tags and it works fine except if you have page with a ParagraphSetup. The content of the ParagraphSetup template is ignored by the Global:Page.Content.

Is this a bug or is it how it is suposed to work?

Is there any method in the Dyniamicweb API to retrieve pagecontent including content from the paragraphsetup?


Here is the content for page 72 http://g2dynamicweb.pro.drax.se/Default.aspx?ID=72&Purge=True

Here is the content generetad for the same page by Global:Page tag  http://g2dynamicweb.pro.drax.se/Products/Casino.aspx

Urgen help needed. :)

Regards / Aki


Replies

 
Nicolai Høeg Pedersen
Reply
The  Global:Page.Content tag inserts the same as DwContent in a page template - except Global paragraphs... (Due to possible cirkular reference problems.)
 
Reply
OK,

Any ideas of why the fist tab "Product Info" does not generate Paragraph setup html but the next tab "Case Scenario" does generate it. The content of the tabs are generated with Global:Page.Content.

/Aki
 
Reply
Is there any methond in the API for retrieving pagecontent?

/Aki

 
Nicolai Høeg Pedersen
Reply

Frontend.Pageview.Current.Content.CreateContent(PageID)

 
Reply
Thanks! Works like a charm. :)

 

You must be logged in to post in the forum