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 Attachment attachment @args Audience audience @args String client_device @args String dwello_url @args SearchCriteria effective_filter @args String full_url @args String host @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: ------------------------------------------------- 626: 627: 628: 629: 630:
>> 631:
@total_results results for @title
632:
633: 634:
635: 636:
637: Relevant Java source lines: ------------------------------------------------- 441: p("\n
\n
\nCity: "); //line: 622 442: 443: try{pe(location.getCity());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 622 444: p("\n
\n\n\n
\n
"); //line: 631 445: >> 446: try{pe(total_results);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 631 447: p(" results for "); //line: 631 448: 449: try{pe(title);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 631 450: p("
\n
\n\n
\n
\n"); //line: 639 451: for (int i = 0; i < results.length(); i++){ //line: 638 452: //line: 639