public function execute(array &$param_pool = null)
{
$ordercolumn = $this->__processParametersInString('$url-order.1.column', $this->_env, false);
switch ($ordercolumn) {
case "0":
$this->dsParamSORT = "name";
break;
// fetch($entry_id=NULL, $section_id=NULL, $limit=NULL, $start=NULL, $where=NULL, $joins=NULL, $group=false, $buildentries=true, $element_names=null){
$em = new EntryManager();
$entries = $em->fetch(null, 83, 10, 0, false, false, false, true, array ('title'));
// echo "<h2>Products</h2><pre>";print_r($entries);echo "</pre>";die;
$product_em = new EntryManager();
$product_fields = array ('title');
$products = $product_em->fetch(
Written based on hacking away at a custom event which aimed to take its data solely from entry data and $_SESSION values, and not posted values (which I understand may have been open to DOM hacking and required "ugly" frontend hidden fields).
I was traversing the XMLElement object generated by SymQL (or Entry object generated by EntryManager) with the object's methods and foreach
to get values, which seems to require a lot of effort and code:
php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class contentExtensionReferencelinkAutocomplete extends AjaxPage{ | |
public function handleFailedAuthorisation(){ | |
$this->_status = self::STATUS_UNAUTHORISED; | |
$this->_Result = json_encode(array('status' => __('You are not authorised to access this page.'))); | |
} | |
public function view(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. extension.meta.xml | |
<release version="2.1.3" date="2018-10-01" min="2.4" max="2.x.x"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in the config.php add to the log settings the following line 'filter' => 24575, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class datasourcedsRoles extends SectionDatasource | |
{ | |
public $dsParamROOTELEMENT = 'dsRoles'; | |
public $dsParamCACHE = -1; | |
public $dsParamFILTERS = array( | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Usecase example: | |
--> | |
public function allowEditorToParse() | |
{ | |
return false; | |
} | |
public function execute(array &$param_pool = null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Usecase example: You want to unset the price filter if the $url-price is 0 | |
--> | |
<?php | |
class datasourceds1 extends SectionDatasource | |
{ | |
public $dsParamROOTELEMENT = 'ds1'; | |
public $dsParamORDER = '{$url-order:desc}'; | |
public $dsParamPAGINATERESULTS = 'yes'; | |
public $dsParamLIMIT = '20'; |
NewerOlder