Developer forum

Forum » Development » How to show paragraph content?

How to show paragraph content?

Adrian Ursu
Reply
Hello,
 
We are upgrading a custom solution from DW7 to 8. It has a custom module that allowed the user to create a report that shows informations about paragraphs selected by him: title, content, ... 
We have a problem showing the paragraph content because the functions used in version 7 are now inaccessible in version 8. It used Dynamicweb.Frontend.Content class to write the content, but now it can't find the constructor, WriteParagraph and setPageview. I've attached the code for the function used to get the paragraph content.
Are there any other functions I can use instead of these?
 
I also tried to get the content from the global tag <!--@Global:Paragraph.Content([ID])--> in the template, but it's not rendered. And also DWTemplateTags returns nothing.
 
How can we solve this?
 
Thanks

Replies

 
Nicolai Høeg Pedersen
Reply

At the current step you cannot.

 

I've just added 2 static methods to Content.Pargraph class that renders a paragraph and returns the markup.

 

Will be out with 8.3, TFS 12344

 

BR Nicolai

 

You must be logged in to post in the forum