Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » DW9.1.3 PageView.Current().CurrentParagraph is null

DW9.1.3 PageView.Current().CurrentParagraph is null

Kim Pilgaard
Reply

When I access PageView.Current().CurrentParagraph from paragraph templates and backend services called from paragraph templates I recieve a null value.

Are there alternative ways of fetching the current paragraph being rendered via the api?

I have attached a small test-template which I used to verify the issue. This demonstrates the issue on my local testsite which is running Dynamicweb version 9.1.3


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Kim

I can see from our code that you have discovered a bug. We set the CurrentParagraph to nothing before the template is executed. Will get a fix made.

BR Nicolai

Votes for this answer: 1
 
Kevin Steffer
Kevin Steffer
Reply

Could you let us know which release it gets planned for?


​Thanks.

 
Nicolai Pedersen
Reply

TFS#28501, already fixed and ready for 9.1.4 due any day... (probably tomorrow)

 
Kevin Steffer
Kevin Steffer
Reply

Nice !!!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Kim and Kevin

The problem TFS#28501 "CurrentParagraph is always null in paragraph templates" has now been fixed in version 9.1.4

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum