3.10 Code Changes?
2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 20, 2017 (RSS)
By mark99 - June 20, 2017
Quick question, I see there are some changes to how the viewer code works in 3.10. However I'm unclear if I can still do things like this or if I somehow need to change my code.. examples of current code below:
$orderBy = @$_REQUEST['orderBy'];
$orderByClean = "";
if(!$orderByClean) { $orderByClean = 'sfbb_cheap_total_price+0'; }
list($isp_listRecords, $isp_listMetaData) = getRecords(array(
'tableName' => 'isp_list',
'limit' => '10',
'loadCreatedBy' => false,
'where' => " category LIKE '%Superfast Broadband%' AND (uk_network_availability LIKE '%Significant National Coverage%' OR uk_network_availability LIKE '%Patchy National Coverage%') ",
//'where' => " category LIKE '%Superfast Broadband%' ",
'orderBy' => $orderByClean,
));
list($isp_listRecords, $isp_listMetaData) = getRecords(array(
'tableName' => 'isp_list',
'where' => whereRecordNumberInUrl(0),
'limit' => '1',
'loadCreatedBy' => false,
));
$isp_listRecord = @$isp_listRecords[0]; // get first record
By Dave - June 20, 2017
Hi Mark99,
Your existing code will always work, and the current code generator is still the same. So you don't need to change anything.
What's new is the "Experimental Code Generators" listed at the bottom of page under: CMS Setup > Code Generators. In the future you'll be able to use those for new sites, but it's all experimental for now.
Hope that helps! Let me know any other questions.
interactivetools.com