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 client_device @args String dwello_url @args SearchCriteria effective_filter @args String full_url @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: ------------------------------------------------- 628: 629: 630: 631: 632:
>> 633:
@total_results results for @title
634:
635: 636:
637: 638:
639: Relevant Java source lines: ------------------------------------------------- 473: p("\n
\n
\nCity: "); //line: 624 474: 475: try{pe(location.getCity());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 624 476: p("\n
\n\n\n
\n
"); //line: 633 477: >> 478: try{pe(total_results);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 633 479: p(" results for "); //line: 633 480: 481: try{pe(title);} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 633 482: p("
\n
\n\n
\n
\n"); //line: 641 483: for (int i = 0; i < results.length(); i++){ //line: 640 484: //line: 641