.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../../Includes.txt .. _developers_userfunc_controlling: ControllingUserfunc =================== User functions in context with plugin controlling. ForwardToSingleView ------------------- Returns true, if a list view should forwarded to a single view. .. code:: php 10 = USER 10 { userFunc = Netzmacher\Xblog\Userfunc\ControllingUserfunc->ForwardToSingleView showUid = {$plugin.tx_xblog.configuration.params.showUid} } Sample '''''' .. code:: php 10 = LOAD_REGISTER 10 { ForwardToSingleView { cObject = COA cObject { 10 = USER 10 { userFunc = Netzmacher\Xblog\Userfunc\ControllingUserfunc->ForwardToSingleView showUid < plugin.tx_xblog.lib.valueFromFlexform showUid { data = flexform: pi_flexform:settings.flexform.pi1.ctrl.showUid ifBlank.cObject.data = flexform: pi_flexform:settings.flexform.pi1.ctrl.showUid ifBlank.ifBlank = showUid } } } } } RemoveShowUidFromSession ------------------------ Returns true, if a showUid - the id of a single view - should removed from the session. .. code:: php 10 = USER 10 { userFunc = Netzmacher\Xblog\Userfunc\ControllingUserfunc->RemoveShowUidFromSession showUid = {$plugin.tx_xblog.configuration.params.showUid} }