org.rythmengine.exception.CompileException: total_results cannot be resolved to a variable Template: @import dwello.Utils @import dwello.model.* @import dwello.model.crm.* @import dwello.model.marketing.* @import dwello.model.pms.* @import dwello.model.dmp.* @import java.utils.* @import org.json.* @import dwello.model.pms.Space.SpaceType @import dwello.model.pms.Space.Units @args Boolean amp @args String amp_custom @args Attachment attachment @args Audience audience @args String body @args String client_device @args String dwello_url @args SearchCriteria effective_filter @args String footer @args String full_url @args String header @args String host @args String inline_style @args Locality location @args JSONArray location_searches @args JSONObject nlp @args SearchCriteria nlp_filter @args String nlp_title @args Integer page @args String page_type @args String relative_path @args ExploreRoute route @args Session session @args Boolean static_resource @args String template_file @args String templateid @args String title @args String url
Search for properties in @location.getName()
City: @location.getCity()
@total_results results for @title
@for(int i = 0; i < results.length(); i++){ @{JSONObject result = results.optJSONObject(i);}
@result.optString("name")
@result.optString("configurations")
₹ @result.optString("minimum_total_price_readable")*
*Price is inclusive of all taxes.
}
@if(page < pages){ }
@for(int i = 1; i <= pages; i++){ @i }
@if(page > 1){ }
Relevant template source lines: ------------------------------------------------- 631: 632: 633: 634: 635:
>> 636:
@total_results results for @title
637:
638: 639:
640: 641:
642: Relevant Java source lines: ------------------------------------------------- 521: p("\n
\n
\nCity: "); //line: 627 522: 523: try{pe(location.getCity());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 627 524: p("\n
\n\n\n
\n
"); //line: 636 525: >> 526: try{pe(total_results);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 636 527: p(" results for "); //line: 636 528: 529: try{pe(title);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 636 530: p("
\n
\n\n
\n
\n"); //line: 644 531: for (int i = 0; i < results.length(); i++){ //line: 643 532: //line: 644