Revision history for ActionInfo


Revision [22872]

Last edited on 2016-05-20 07:38:42 by TeijGer [Replaces old-style internal links with new pipe-split links.]
Additions:
This page can now be found on the [[Docs:ActionInfo | Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/ActionInfo/revisions | old revisions of this page]] is still available for reference.<<
Deletions:
This page can now be found on the [[Docs:ActionInfo Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/ActionInfo/revisions
old revisions of this page]] is still available for reference.<<


Revision [18080]

Edited on 2008-01-27 02:34:53 by TeijGer [Migrated to doc server]
Additions:
<<===This page has moved===
This page can now be found on the [[Docs:ActionInfo Wikka Documentation Server]].
Thanks for updating your bookmarks!
An archive of [[http://wikkawiki.org/ActionInfo/revisions
old revisions of this page]] is still available for reference.<<
::c::
CategoryMigratedDocs
Deletions:
[[WikkaDocumentation Wikka Documentation]]
====How actions work and why it is easy to write your own====
>>**See also**
[[UsingActions Using actions in Wikka pages]]
This Page is also avaible in [[ActionInfoDE German]]
>>
Technically, actions are nothing else then normal php-files, which are included through the wikka-engine:
As you know from [[UsingActions Using actions in Wikka pages]], you simply put the name of an action (and parameters if necessary) between ""{{ and }}"". The wikka-formatter then sends the text between the two brackets to the //function Action($action, $forceLinkTracking = 0)// in the ##wikka.php## . If you take a closer look at it, you will see that everything after the first word is treated as a parameter of the action. If the action-file is found, the parameters are given to it in form of an array.
You can easily extend wikkas functionality by writing your own actions and saving them under a name in the actions directory. This page intends to give you some help with it.
===1. Planning===
At first, you should think about what you want to do and if an action is the best choice for it.
==Action vs. Handler==
Mostly you will have to choose between action and handler. You can easily seperate them with the following question:
Do you add something to a page, or do you want to do something with the page?
a)for an **addition to** a page (the google-form, a weather-forecast, a table), an action should be your choise
a)for doing something **to** a page (like cloning, deleting, editing...), use a handler
==Let others do your work... ;-)==
Since there are many people working with php, it is highly possible that someone has already written the code you need. You surely have looked at the (offical) WikkaFeatures and the Development-Category, but have you also seen the (unoffical) CodeContributions and the UserContributions-category?
It may take you some time to search all this places, but it is better than doing the same work twice.
==... or at least help you==
When you have started working on your action, announce this at PluginsInDevelopment, perhaps someone else wants to help you working on it.
===2. Security===
You should always keep in mind that every user, who has write-access to your pages, can use an action by default. That means if you want your action beeing limited to admins or registered users, you have to take care of it in the action itself, because wikka won't!
//code for restricting access//
==Parameters==
As said above, paramters are given as an array to the action. You can use the following code to get their values:
//code for getting params//
//will be continued//
CategoryDocumentation


Revision [16403]

Edited on 2007-04-18 05:31:43 by TeijGer [Migrated to doc server]
Additions:
===2. Security===
Deletions:
===2.Security===


Revision [14804]

Edited on 2006-07-13 03:27:38 by DarTar [reverting]
Additions:
[[WikkaDocumentation Wikka Documentation]]
----
====How actions work and why it is easy to write your own====
>>**See also**
[[UsingActions Using actions in Wikka pages]]
This Page is also avaible in [[ActionInfoDE German]]
>>
Technically, actions are nothing else then normal php-files, which are included through the wikka-engine:
As you know from [[UsingActions Using actions in Wikka pages]], you simply put the name of an action (and parameters if necessary) between ""{{ and }}"". The wikka-formatter then sends the text between the two brackets to the //function Action($action, $forceLinkTracking = 0)// in the ##wikka.php## . If you take a closer look at it, you will see that everything after the first word is treated as a parameter of the action. If the action-file is found, the parameters are given to it in form of an array.
You can easily extend wikkas functionality by writing your own actions and saving them under a name in the actions directory. This page intends to give you some help with it.
===1. Planning===
At first, you should think about what you want to do and if an action is the best choice for it.
==Action vs. Handler==
Mostly you will have to choose between action and handler. You can easily seperate them with the following question:
Do you add something to a page, or do you want to do something with the page?
a)for an **addition to** a page (the google-form, a weather-forecast, a table), an action should be your choise
a)for doing something **to** a page (like cloning, deleting, editing...), use a handler
==Let others do your work... ;-)==
Since there are many people working with php, it is highly possible that someone has already written the code you need. You surely have looked at the (offical) WikkaFeatures and the Development-Category, but have you also seen the (unoffical) CodeContributions and the UserContributions-category?
It may take you some time to search all this places, but it is better than doing the same work twice.
==... or at least help you==
When you have started working on your action, announce this at PluginsInDevelopment, perhaps someone else wants to help you working on it.
===2.Security===
You should always keep in mind that every user, who has write-access to your pages, can use an action by default. That means if you want your action beeing limited to admins or registered users, you have to take care of it in the action itself, because wikka won't!
//code for restricting access//
==Parameters==
As said above, paramters are given as an array to the action. You can use the following code to get their values:
//code for getting params//
//will be continued//
----
CategoryDocumentation


Revision [14802]

Edited on 2006-07-12 22:48:11 by WikiName123 [reverting]
Deletions:
[[WikkaDocumentation Wikka Documentation]]
----
====How actions work and why it is easy to write your own====
>>**See also**
[[UsingActions Using actions in Wikka pages]]
This Page is also avaible in [[ActionInfoDE German]]
>>
[[Technically]], actions are nothing else then normal php-files, which are included through the wikka-engine:
As you know from [[UsingActions Using actions in Wikka pages]], you simply put the name of an action (and parameters if necessary) between ""{{ and }}"". The wikka-formatter then sends the text between the two brackets to the //function Action($action, $forceLinkTracking = 0)// in the ##wikka.php## . If you take a closer look at it, you will see that everything after the first word is treated as a parameter of the action. If the action-file is found, the parameters are given to it in form of an array.
You can easily extend wikkas functionality by writing your own actions and saving them under a name in the actions directory. This page intends to give you some help with it.
===1. Planning===
At first, you should think about what you want to do and if an action is the best choice for it.
==Action vs. Handler==
Mostly you will have to choose between action and handler. You can easily seperate them with the following question:
Do you add something to a page, or do you want to do something with the page?
a)for an **addition to** a page (the google-form, a weather-forecast, a table), an action should be your choise
a)for doing something **to** a page (like cloning, deleting, editing...), use a handler
==Let others do your work... ;-)==
Since there are many people working with php, it is highly possible that someone has already written the code you need. You surely have looked at the (offical) WikkaFeatures and the Development-Category, but have you also seen the (unoffical) CodeContributions and the UserContributions-category?
It may take you some time to search all this places, but it is better than doing the same work twice.
==... or at least help you==
When you have started working on your action, announce this at PluginsInDevelopment, perhaps someone else wants to help you working on it.
===2.Security===
You should always keep in mind that every user, who has write-access to your pages, can use an action by default. That means if you want your action beeing limited to admins or registered users, you have to take care of it in the action itself, because wikka won't!
//code for restricting access//
==Parameters==
As said above, paramters are given as an array to the action. You can use the following code to get their values:
//code for getting params//
//will be continued//
----
CategoryDocumentation


Revision [14799]

Edited on 2006-07-12 22:42:46 by WikiName123 [reverting]
Additions:
[[Technically]], actions are nothing else then normal php-files, which are included through the wikka-engine:
Deletions:
Technically, actions are nothing else then normal php-files, which are included through the wikka-engine:


Revision [7938]

Edited on 2005-05-08 06:17:14 by PeterPike [reverting]
Additions:
Since there are many people working with php, it is highly possible that someone has already written the code you need. You surely have looked at the (offical) WikkaFeatures and the Development-Category, but have you also seen the (unoffical) CodeContributions and the UserContributions-category?
Deletions:
Since there are many people working with php, it is highly possible that someone has already written the code you need. You surely have looked at the (offical) WikkaFeatures and the Development-Category, but have you also seen the (inoffical) CodeContributions and the UserContributions-category?


Revision [7928]

Edited on 2005-05-06 10:44:41 by YvesFischer [reverting]
Additions:
This Page is also avaible in [[ActionInfoDE German]]


Revision [5830]

The oldest known version of this page was created on 2005-02-09 15:49:08 by NilsLindenberg [reverting]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki