Developer forum

Forum » Dynamicweb 10 » Sample of comments for dw10?

Sample of comments for dw10?

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi,

I'm trying to see if I can get the comments & ratings to work in 10. I started out with the old example: https://doc.dynamicweb.com/documentation-9/ecommerce/other/comments-ratings#sideNavTitle1-5

I'm attempting to get the template to compile first, and managed to a least remove all obvious errors (although I do realize I mangled some stuff, but first things first)

Now I'm stuck with an error a bit deeper in the RazorEngine, which makes me think I might be either missing something fundamental, or comments are maybe not yet ready in 10?

The error is "

The name 'PushWriter' does not exist in the current context

I attached the cshtml... I get the error when I add it to a product detail page...

Thanks,

Justin


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hard to tell. What happens if you remove code blocks one by one until the template runs - if it ever will?

The error you get sounds weird - never seen it before but seems to be coming from Razor engine. Could be some kind of template code formatting issue - so if you try first with an almost empty template and add the code bits until it breaks and see what happens...

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Thanks for the tip, the RazorEngine choked on: <input type="text" class="form-control" name="Comment.Email" id="Comment.Email" value="@if (currentUser != null) {@currentUser.Email }" />

Looks like I'll get it to work :-)

I can post comments and see them on a single product level. 

The moderation overview of all comments is not yet available in 10 I think? https://doc.dynamicweb.com/documentation-9/ecommerce/other/comments-ratings#sideNavTitle1-3

 

You must be logged in to post in the forum