RM 2.2 Template inject under resource review field

Andy.N

Well-known member
I would like to do an template modification to inject some html with conditionals
The area I like to add some html would be under the review field Headline like the green arrow below.
Appreciate any input.

Screenshot 2023-11-09 at 7.46.47 PM.webp
 
You are correct. I have the star rating bits at the bottom custom developed.
That's the only part when removed everything will be stock XF.

Given that, anything you can suggest Paul?
 
Right ... it's the reviews page, not the resource overview.

The quickest way to find out what to edit is to search the phrases for headline then search the templates for whatever the phrase name is.
I suspect it will also be headline.
 
Right ... it's the reviews page, not the resource overview.

The quickest way to find out what to edit is to search the phrases for headline then search the templates for whatever the phrase name is.
I suspect it will also be headline.
The phrase is xfrm_resource_review_field_title.reviewHeadline
Searching for templates contain this phrase yield no result.
 
Probably due to it being added via a template modification.

Search for one of the core phrases and you should find it.

Or check the template modification to see which template it's being added to and where.
 
Probably due to it being added via a template modification.

Search for one of the core phrases and you should find it.

Or check the template modification to see which template it's being added to and where.
After some digging, the template is xfrm_resource_review_macros
The area where I want to insert a blurb is right before
<div class="message-body">
{{ structured_text($review.message) }}
</div>
 
Back
Top Bottom