public function initialize() { $this->setDefaultProperties(array("includeTVs" => false, "sort" => "", "parent_joining_type" => "left", "process_tags" => false, "JoinParents" => false, "in_rss_only" => false, "in_news_list_only" => false, "show_hidden_on_mainpage" => true, "top_news_only" => false, "main_news_only" => false)); # switch($this->getProperty('sort')){ # case 'image': # $this->setProperty("sort", "tv_2_image.value"); # break; # } # print_r($this->properties); # # exit; return parent::initialize(); }
public function initialize() { $this->setDefaultProperties(array('startId' => $this->modx->resource->id)); return parent::initialize(); }