dev-master
9999999-devThis plugin provides functionality for users to share their publications
GPL-2.0
The Requires
The Development Requires
plugin elgg bibtex publications
This plugin provides functionality for users to share their publications
This plugin provides functionality for users to share their publications., (*2)
Upgraded for 1.8 by ColdTrick IT Solutions, (*3)
It's possible to add a custom set of inputs to a publication. This can be done by eighter extending/overwriting the existing types or by registering a new type., (*4)
The plugin hook register:types
, publications
allows you to add a new custom type. The new type will be listed on the form with the language key
publications:type:<your new type>
if defined (otherwise it's just the new name)., (*5)
If you've registered a new type and the user selects it, the view publications/publication/edit/<your new type>
will be called., (*6)
When editing an existing publication the view gets the publication in $vars['entity']
., (*7)
In the save action a plugin hook input_validation:<your new type>
, publications
will be triggered. If you return false
the user
will be send back to the add/edit form. In order to help the user with what went wrong, please use register_error()
, (*8)
If you name your input fields data[somename]
this will automaticly be saved with the publication under $entity->somename
., (*9)
If for some reason your data can't be set in this way (or you wish to manipulate the data) an event save:data
, publications
will be triggered
for which the third variable will contain the current publication., (*10)
When the publication is viewed you can add your custom data by providing a view publications/publication/view/<your new type>
. This view needs to
output table rows in a two (2) column table., (*11)
This plugin provides functionality for users to share their publications
GPL-2.0
plugin elgg bibtex publications