Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用扩展 feuserlisting 向访问者展示网站成员列表,但我想按全名对列表进行排序。我知道我可以单击表格标题在屏幕上显示它时对其进行排序,但不知何故应该可以通过 TypoScript 设置默认排序?
这样做的方法是使用 _DEFAULT_PI_VARS 机制。
plugin.tx_feuserlisting_pi1._DEFAULT_PI_VARS { sort = name:0 }
feuserlisting 的列表视图方法通过调用$this->pi_setPiVarDefaults()(从 tslib_pibase 继承)来初始化,其中_DEFAULT_PI_VARS在建立 piVar 时会考虑密钥。
$this->pi_setPiVarDefaults()
_DEFAULT_PI_VARS
这种技术应该在所有使用这种调用初始化其 piVar 的 pibase 扩展中都可用。