Extending the Page List controller

Permalink 0 0 Browser Info Environment
It's not possible to extend the PageList block controller and and new action method on it.
Those actions will always return a 404 error.
public function isValidControllerTask($method, $parameters = [])
        if (!$this->enableExternalFiltering) {
            return false;
        return parent::isValidControllerTask($method, $parameters);

return parent::isValidControllerTask($method, $parameters);

This always returns false because on the parent isValidControllerTask method "get_class($this)" returns string(59) "Concrete\Block\CorePageTypeComposerControlOutput\Controller". Therefor it won't be able to find the new actions made on the extended block controller class.

Also see:https://www.concrete5.org/community/forums/customizing_c5/block-with...

Status: New

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Kiwi Themes (0.1.5)

# concrete5 Overrides
blocks/form/auto.js, blocks/form/controller.php, blocks/form/db.xml, blocks/form/form_setup_html.php, blocks/form/images/form-faq.jpg, blocks/form/images, blocks/form/mini_survey.php, blocks/form/templates/collumns-default/view.js, blocks/form/templates/collumns-default/view.php, blocks/form/templates/collumns-default, blocks/form/templates/no_form_title.php, blocks/form/templates, blocks/form/tools/services.php, blocks/form/tools, blocks/form/view.css, blocks/form/view.js, blocks/form/view.php, blocks/form, blocks/page_list/controller.php, blocks/page_list, attributes/date_time/form.php, attributes/date_time, mail/default_form_client.php, mail/default_form_customer.php, themes/placeholder/default.php, themes/placeholder/page_theme.php, themes/placeholder/thumbnail.png, themes/placeholder/view.php, themes/placeholder

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.25 (Win64) PHP/5.6.30

# Server API

# PHP Version

# PHP Extensions
apache2handler, bcmath, calendar, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, gmp, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, Reflection, session, SimpleXML, soap, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 900
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 900
max_input_vars - 1000
memory_limit - 1024M
post_max_size - 60M
sql.safe_mode - Off
upload_max_filesize - 60M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36