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 footer @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: ------------------------------------------------- 627: 628: 629: 630: 631:
>> 632:
@total_results results for @title
633:
634: 635:
636: 637:
638: Relevant Java source lines: ------------------------------------------------- 457: p("\n
\n
\nCity: "); //line: 623 458: 459: try{pe(location.getCity());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 623 460: p("\n
\n\n\n
\n
"); //line: 632 461: >> 462: try{pe(total_results);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 632 463: p(" results for "); //line: 632 464: 465: try{pe(title);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 632 466: p("
\n
\n\n
\n
\n"); //line: 640 467: for (int i = 0; i < results.length(); i++){ //line: 639 468: //line: 640