Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar



Summary: Add condition to check action
Created: 2016-09-14 14:00
Status: Open
Category: Feature
From: Maddes
Priority: 2
Version: 2.2.89
OS: Ubuntu Server 16.04 LTS / Apache 2.4 / PHP 7.0

Description: Please consider adding a condition to check the current action to the PmWiki core. Users can use in Site.PageActions or whereever wanted.

My current workaround is a farmconfig.php with:
$Conditions['action'] = '$GLOBALS["action"]==$condparm';

Maddes September 14, 2016, at 02:02 PM

The core already has the PageVariable "{$Action}" which could be useful in more ways. In a conditional, you could have (:if equal "{$Action}" "browse":). In a skin you could have <body class="action-{$Action}"> for example. This should probably be better documented. --Petko September 14, 2016, at 04:06 PM

Edit - History - Print - Recent Changes - Search
Page last modified on September 14, 2016, at 04:06 PM