New comment asset

Hi


We have just upgraded to 3.14 and I’m playing around with the new comment asset.



How can I remove the “Name” text field and display the rating drop down on the “logged in” asset builder page?



Basically I need the matrix keywords for this asset. Also how do I get the 'stars' printing at the mommnet I have %asset_attribute_rating% but that's just printing the numeric value.



Cheers

Nath

In the asset builder you need to cusomise the comment bodycopy.
Here's the example content

Title: %details-F_name%

Comment: %details-F_comment%

Rating: %details-F_rating%

%commit_button_clean%





For star display use this:

%comment_rating_image_html_block%

[quote]%comment_rating_image_html_block%
[right][post=“16068”]<{POST_SNAPBACK}>[/post][/right][/quote]



Perfect! Thanks Andrei :smiley:

To help out anyone who's looking for how to display comments using an asset listing, try something this…


<p>%asset_attribute_comment%</p>

<p>Rating: %comment_rating_image_html_block%</p>

<p>Comment by %asset_name% on %asset_created_readable%</p>

<hr />

Good pointer right there from Peter :slight_smile:

I've been trying to set up a comment asset builder page but the replacement keywords,


%details-F_name%

%details-F_comment%

%details-F_rating%



don't generate anything on the frontend.



The only thing that works is %create_form%. Any clue what might be going wrong? I've checked the global prefs and they seems to be fine.



The asset listing by peter above works perfectly. :huh:



EDIT: I figured it out. But the numerical rating is not working. When I look at the comments created through the asset builder the review is -1. Any clue?

Just a bump. Anyone explain the numerical rating not working? no matter what rating given matrix is seeing the numerical rating as -1.

[quote]I've been trying to set up a comment asset builder page but the replacement keywords,


%details-F_name%

%details-F_comment%

%details-F_rating%



don't generate anything on the frontend.



The only thing that works is %create_form%. Any clue what might be going wrong? I've checked the global prefs and they seems to be fine.[/quote]



I'm using a custom create form layout, and I'm having the same problem. Does anyone know what I might be doing wrong?

What version are you guys running? Mine works perfectly in 3.16.1

We're on 3.12.6

The rating functionality was added in 3.14, the rating keyword wont work in previous versions.


EDIT: Actually, it looks like the comment asset was only added in 3.14, and the only change since the release was a bug fix (#2551) in 3.14.4.

OK…


These two keywords don't work for me.



%details-F_name%

%details-F_comment%





My Squiz comment custom layout is set up as such:



Comment



%details-F_comment%



Your name



%details-F_name%



%commit_button%





Which produces this when I view the asset builder:



Commment

Your name



and the button



i.e. The actual fields are missing.



What am I doing wrong?

Try: %details-F_Name% and %details-F_Comment%

Nope. They didn't work either :frowning:


I think this is perhaps a version problem. You guys are still on v3.12, and should really consider upgrading to v3.14 or 3.16.