How can I create Custom Actions?

16 views
Skip to first unread message

Nikki Erwin C. Ramirez

unread,
Oct 15, 2009, 9:20:40 AM10/15/09
to simple-g...@googlegroups.com
Can I create custom actions, like the Lock/Unlock action for Files?

I found that the action for Lock is indicated as a URL parameter:  h ttp: //moanima/bin/files.php?folder2=13601&view2=history&field=filedata&item[]=201&subitem=1&action=lock

Thomas

unread,
Oct 15, 2009, 7:02:07 PM10/15/09
to Simple Groupware
Hello,

yes you can create new actions, e.g. files.php?
folder=13601&view=history&field=filedata&item[]
=201&subitem=1&action=compress
In files.php, you can use:

if ($_REQUEST["action"]=="compress") {
...
}

bye
Thomas

On Oct 15, 3:20 pm, "Nikki Erwin C. Ramirez" <necrami...@gmail.com>
wrote:
> Can I create custom actions, like the Lock/Unlock action for Files?
> I found that the action for Lock is indicated as a URL parameter:  h ttp:
> //moanima/bin/files.php?folder2=13601&view2=history&field=filedata&item[]=201&subitem=1&
> *action*=lock
Reply all
Reply to author
Forward
0 new messages