Re: [Tiki-devel] Indentation Plugin

Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Am Mittwoch, den 19.05.2021, 14:16 +0200 schrieb Volker Wysk:
> Hi!
> 
> I've followed Brendan's advice (in tikiwiki-users) and built an indentation
> plugin. This was easy - I've taken the PluginSup as a starting point.
> However, I couldn't find documentation for some of the output parameters in
> the wikiplugin_indent_info() function. I've commented them out and it
> appears to work fine:

Um, I also don't know what that 'body' parameter does. The section in the
Hello World page says: 

'body' => tra('Explain what the body of the plugin does')

But I don't understand this comment. What's the "body of the plugin"?


Cheers,
Volker

> 
> 
> <?php
> function wikiplugin_indent_info()
> {
> 	return [
> 		'name' => tra('Indentation'),
> 		'documentation' => 'PluginIndent',
> 		'description' => tra('Indent a text block'),
> 		//'prefs' => [ 'wikiplugin_indent' ],
> 		'body' => tra('text'),
> 		//'iconname' => 'superscript',
> 		//'introduced' => 2,
> 		//'filter' => 'wikicontent',
> 		//'tags' => [ 'basic' ],
> 		'params' => [
> 		],
> 	];
> }
> 
> function wikiplugin_indent($data, $params)
> {
> 	return "<ul><li style=\"list-style-type:none\">$data</li></ul>";
> }
> 
> 
> (I've removed the copyright notice for clarity. The file is also attached,
> with the copyright notice in place.)
> 
> Now I'm wondering what those five unknown output parameters do. I think this
> plugin should be included in the next Tiki release. Therefore I want to do
> it right.
> 
> I guess there must be documentation for them somewhere. I've found
> documentation here:
> http://dev.tiki.org/Hello+World#To_create_a_new_plugin . But it's
> incomplete. Have I missed something?
> 
> Cheers,
> Volker
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmClBBcACgkQ+K4ydFOs
HoUPsQ//cNm+gCZuDqBkU95UQj7PbC9LMNO+MIFE9ee9t42JxHmOZVRW70Kh/fjL
yZgdApakgox1AN/E++WI/J3rhGhnAiRdS25UkaqEKnVERvjcf/ufsjhb538ZB6kz
aY4uoljCv/yqTEyGwsO1vXeixg+S68bBGdIrPVdO9F50MyEUKOWOPJ1NRisAAIrG
v4n/K8dgIBAJOEdE/KMWczHr/KuJ53RV3RHlOUwij+LbesrJIy4Fe3lggaJzcEkM
2AFEymH4NEvUEun7CfVlvEFCK18Rd/m5r89+DO8XDSMvXdQC/jNX5KJgIoA0bBOR
F+I35B2C4XB/BlhUVFwlT0QnqspoJ/Yl/lSjYA/oKdpizqzGZv2OE+kyZ/hixgXm
/xKpDTR5EHXhpfaqfvd2bR5BmU7D5eFMvfnS05YOtkqEgoEqPR/p6mKK6RNTwX8l
HbmB183MlC75qZyueyGhG9PQl5F2ZJw08XM18GVgdG9Y/OR7jHLzSXcUuuZMfk0S
5kNfnzhyFWmec6Ljybeqc18pVQtyc32hyES3jH8Qh7eEUd29YzxmVA95GLh7od/l
3gCHdScYrG12wGbqDCyt8lvjhrRU1sXy8+3RNwF37qsvH7tbBet2wM8LTH/gNZ7i
JT+MB5wpr3yLgQJs2uPiC5CyoHJcoUc3c1KJEdyFePnlBlmoQV8=
=CvMn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.